Class MemberArgumentDecoratorExtensions
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Extension methods for the MemberArgument class hidden behind the IDecorator<T> interface.
public static class MemberArgumentDecoratorExtensions
- Inheritance
-
MemberArgumentDecoratorExtensions
Methods
CreateException(IDecorator<Stack<IList<MemberArgument>>>, Boolean)
Converts the underlying Stack<T> of the decorator
that has one or more sequences of MemberArgument into an Exception.
This API supports the product infrastructure and is not intended to be used directly from your code.
public static Exception CreateException(this IDecorator<Stack<IList<MemberArgument>>> decorator, bool parseAsXml = false)
Parameters
decorator
IDecorator<Stack<IList<MemberArgument>>>The IDecorator<T> to extend.
parseAsXml
BooleanWhen
true
, the Message is parsed using\n
as newline; otherwise NewLine is used. Reason for this design is explained here: https://www.w3.org/TR/REC-xml/#sec-line-ends
Returns
Exceptions
- ArgumentNullException
decorator
cannot be null.
See Also
IDecorator<T>
Decorator<T>