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
decorator
IDecorator<PropertyInfo>The IDecorator<T> to extend.
Returns
- Boolean
true
if the underlying PropertyInfo of thedecorator
is considered an automatic property implementation; otherwise,false
.
Exceptions
- ArgumentNullException
decorator
cannot 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
decorator
IDecorator<PropertyInfo>The IDecorator<T> to extend.
Returns
- Boolean
true
if the underlying PropertyInfo of thedecorator
has been overridden; otherwise,false
.
Exceptions
- ArgumentNullException
decorator
cannot be null.
See Also
IDecorator<T>
Decorator<T>