AddExceptionConverter Method
Definition
- Namespace
- Cuemon.Extensions.Xml.Serialization.Converters
- Assemblies
- Cuemon.Extensions.Xml.dll
AddExceptionConverter(IList<XmlConverter>, bool, bool)
Adds an Exception XML converter to the list.
public static IList<XmlConverter> AddExceptionConverter(this IList<XmlConverter> converters, bool includeStackTrace, bool includeData)
Parameters
convertersIList<XmlConverter>The IList<T> to extend.
includeStackTraceboolThe value that determine whether the stack of an exception is included in the converted result.
includeDataboolThe value that determine whether the data of an exception is included in the converted result.
Returns
- IList<XmlConverter>
A reference to
convertersafter the operation has completed.
Exceptions
- ArgumentNullException
converterscannot be null.