Method GetMemberAttributes
GetMemberAttributes<TType, TValue>(Expression<Func<TType, TValue>>)
Returns all attributes set on a specific member.
Declaration
public static Attribute[] GetMemberAttributes<TType, TValue>(Expression<Func<TType, TValue>> expr)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<TType, TValue>> | expr | An expression path to the member |
Returns
Type | Description |
---|---|
Attribute[] | An array of attributes |
Type Parameters
Name | Description |
---|---|
TType | The class type where the member is defined |
TValue | The member type |
Remarks
This method doesn't return inherited attributes, only explicit ones.