GetAttribute
GetAttribute(Assembly, Type)
public static Attribute GetAttribute(Assembly assembly, Type targetType) ;
Description
Get Attribute (generic)
Parameters
| Parameter Name | Description |
|---|---|
| assembly | Assembly |
| targetType | Target Type |
Returns
Attribute
GetAttribute<T>(Assembly)
public static T GetAttribute<T>(Assembly assembly) ;
Description
Get Attribute (generic)
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| T | Target Type |
|
Parameters
| Parameter Name | Description |
|---|---|
| assembly | Assembly |
Returns
Attribute
GetAttribute(MemberInfo, Type)
public static Attribute GetAttribute(MemberInfo member, Type targetType) ;
Description
Get Attribute (generic)
Parameters
| Parameter Name | Description |
|---|---|
| member | MemberInfo |
| targetType | Target Type |
Returns
Attribute
GetAttribute(Type, Type)
public static Attribute GetAttribute(Type type, Type targetType) ;
Description
Get Attribute (generic)
Parameters
| Parameter Name | Description |
|---|---|
| type | Type |
| targetType | Target Type |
Returns
Attribute
GetAttribute<T>(MemberInfo)
public static T GetAttribute<T>(MemberInfo member) ;
Description
Get Attribute (generic)
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| T | Target Type |
|
Parameters
| Parameter Name | Description |
|---|---|
| member | MemberInfo |
Returns
Attribute
GetAttribute<T>(Type)
public static T GetAttribute<T>(Type type) ;
Description
Get Attribute (generic)
Type Parameters
| Type Parameter Name | Description | Type Constraints |
|---|---|---|
| T | Target Type |
|
Parameters
| Parameter Name | Description |
|---|---|
| type | Type |
Returns
Attribute