HasAnonymousCharacteristics Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
HasAnonymousCharacteristics(IDecorator<Type>)
Determines whether the underlying Type of the decorator suggest an anonymous implementation (be that in a form of a type, delegate or lambda expression).
public static bool HasAnonymousCharacteristics(this IDecorator<Type> decorator)
Parameters
decoratorIDecorator<Type>The IDecorator<T> to extend.
Returns
- bool
trueif the underlying Type of thedecoratorsuggest an anonymous implementation; otherwise,false.
Remarks
If you can avoid it, don't use this method. It is - to say the least - fragile.
Exceptions
- ArgumentNullException
decoratorcannot be null.