ObjectExtensionsGetAttributeFromT(PropertyInfo) Method
Get attribute from a property.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static T GetAttributeFrom<T>(
this PropertyInfo property
)
where T : Attribute
<ExtensionAttribute>
Public Shared Function GetAttributeFrom(Of T As Attribute) (
property As PropertyInfo
) As T
- property PropertyInfo
- PropertyInfo with the property to retrieve the attribute.
- T
- The type of attribute to retrieve.
TAn attribute from a property if found; otherwise,
.In Visual Basic and C#, you can call this method as an instance method on any object of type
PropertyInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).