Crosser Technologies - Server
Crosser Technologies - Server
Namespaces
Crosser.Common Namespaces
Crosser.Common.Utilities Namespaces
Crosser.Common.Utilities.Reflection
ReflectionHelper Class
ReflectionHelper Methods
GetCustomAttributesOfType Method
GetCustomAttributesOfType(TA) Method (MethodInfo)
GetCustomAttributesOfType(TA) Method (ParameterInfo)
GetCustomAttributesOfType(TA) Method (PropertyInfo)
GetCustomAttributesOfType(TA) Method (IController)
ReflectionHelper
GetCustomAttributesOfType
TA
Method (PropertyInfo)
Returns all attributes of type TA on a
PropertyInfo
object
Namespace:
Crosser.Common.Utilities.Reflection
Assembly:
Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
Copy
public
static
TA[]
GetCustomAttributesOfType
<TA>(
this
PropertyInfo
pi
)
where
TA :
Attribute
Parameters
pi
Type:
System.Reflection
PropertyInfo
PropertyInfo to discover the attribute on
Type Parameters
TA
The attribute type to find
Return Value
Type:
TA
Array of TA
Usage Note
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)
.
See Also
Reference
ReflectionHelper Class
GetCustomAttributesOfType Overload
Crosser.Common.Utilities.Reflection Namespace