Interface IPropertyAttributeCollection
Interface for accessing attributes for properties.
Syntax
public interface IPropertyAttributeCollection
Methods
GetAttribute<TAttribute>()
Returns the first attribute of the given type.
Declaration
TAttribute GetAttribute<TAttribute>()
where TAttribute : Attribute
Returns
Type |
Description |
TAttribute |
|
Type Parameters
Name |
Description |
TAttribute |
|
GetAttributes<TAttribute>()
Returns all attribute of the given type.
Declaration
IEnumerator<TAttribute> GetAttributes<TAttribute>()
where TAttribute : Attribute
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<TAttribute> |
|
Type Parameters
Name |
Description |
TAttribute |
|
HasAttribute<TAttribute>()
Returns true if the property has any attributes of the given type.
Declaration
bool HasAttribute<TAttribute>()
where TAttribute : Attribute
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Name |
Description |
TAttribute |
|