Table of Contents

AddExceptionConverter Method

Definition

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

converters IList<XmlConverter>

The IList<T> to extend.

includeStackTrace bool

The value that determine whether the stack of an exception is included in the converted result.

includeData bool

The value that determine whether the data of an exception is included in the converted result.

Returns

IList<XmlConverter>

A reference to converters after the operation has completed.

Exceptions

ArgumentNullException

converters cannot be null.