Class PropertyInfoDecoratorExtensions
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Extension methods for the PropertyInfo class hidden behind the IDecorator<T> interface.
public static class PropertyInfoDecoratorExtensions
- Inheritance
-
PropertyInfoDecoratorExtensions
Methods
IsAutoProperty(IDecorator<PropertyInfo>)
Determines whether the underlying PropertyInfo of the decorator is considered an automatic property implementation.
public static bool IsAutoProperty(this IDecorator<PropertyInfo> decorator)
Parameters
decoratorIDecorator<PropertyInfo>The IDecorator<T> to extend.
Returns
- bool
trueif the underlying PropertyInfo of thedecoratoris considered an automatic property implementation; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.
IsOverridden(IDecorator<PropertyInfo>)
Determines whether the underlying PropertyInfo of the decorator has been overridden.
public static bool IsOverridden(this IDecorator<PropertyInfo> decorator)
Parameters
decoratorIDecorator<PropertyInfo>The IDecorator<T> to extend.
Returns
- bool
trueif the underlying PropertyInfo of thedecoratorhas been overridden; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.
See Also
IDecorator<T>
Decorator<T>