'Declaration Public Shared Function GetCustomAttribute(Of T As Attribute)( _ ByVal memberInfo As MemberInfo, _ Optional ByVal inherited As Boolean _ ) As T
public static T GetCustomAttribute<T>( MemberInfo memberInfo, bool inherited ) where T: Attribute
Parameters
- memberInfo
- The member info.
- inherited
- if set to
true
[inherited].
Type Parameters
- T
- Type of the custom attribute.
Return Value
The custom attribute or null if not found.