GetAttribute
GetAttribute(Assembly, Type)
public static Attribute GetAttribute(Assembly assembly, Type targetType) ;
説明
Attributeを取得
パラメーター
| パラメーター名 | 説明 |
|---|---|
| assembly | Assembly |
| targetType | 取得する型 |
戻り値
Attribute
GetAttribute<T>(Assembly)
public static T GetAttribute<T>(Assembly assembly) ;
説明
Attributeを取得 (generic)
型パラメーター
| 型パラメーター名 | 説明 | 型制約 |
|---|---|---|
| T | 取得する型 |
|
パラメーター
| パラメーター名 | 説明 |
|---|---|
| assembly | Assembly |
戻り値
Attribute
GetAttribute(MemberInfo, Type)
public static Attribute GetAttribute(MemberInfo member, Type targetType) ;
説明
Attributeを取得
パラメーター
| パラメーター名 | 説明 |
|---|---|
| member | MemberInfo |
| targetType | 取得する型 |
戻り値
Attribute
GetAttribute(Type, Type)
public static Attribute GetAttribute(Type type, Type targetType) ;
説明
Attributeを取得
パラメーター
| パラメーター名 | 説明 |
|---|---|
| type | Type |
| targetType | 取得する型 |
戻り値
Attribute
GetAttribute<T>(MemberInfo)
public static T GetAttribute<T>(MemberInfo member) ;
説明
Attributeを取得 (generic)
型パラメーター
| 型パラメーター名 | 説明 | 型制約 |
|---|---|---|
| T | 取得する型 |
|
パラメーター
| パラメーター名 | 説明 |
|---|---|
| member | MemberInfo |
戻り値
Attribute
GetAttribute<T>(Type)
public static T GetAttribute<T>(Type type) ;
説明
Attributeを取得 (generic)
型パラメーター
| 型パラメーター名 | 説明 | 型制約 |
|---|---|---|
| T | 取得する型 |
|
パラメーター
| パラメーター名 | 説明 |
|---|---|
| type | Type |
戻り値
Attribute