AddExceptionDescriptorConverter Method
Definition
- Namespace
- Cuemon.Xml.Serialization.Converters
- Assemblies
- Cuemon.Xml.dll
AddExceptionDescriptorConverter(IDecorator<IList<XmlConverter>>, Action<ExceptionDescriptorOptions>)
Adds an ExceptionDescriptor XML converter to the enclosed IList<T> of the specified decorator.
public static IDecorator<IList<XmlConverter>> AddExceptionDescriptorConverter(this IDecorator<IList<XmlConverter>> decorator, Action<ExceptionDescriptorOptions> setup)
Parameters
decoratorIDecorator<IList<XmlConverter>>The decorator that wraps the IList<T> to extend.
setupAction<ExceptionDescriptorOptions>The ExceptionDescriptorOptions which need to be configured.
Returns
- IDecorator<IList<XmlConverter>>
A reference to
decoratorafter the operation has completed.
Exceptions
- ArgumentNullException
decoratorcannot be null.