Class FieldInfoExtensions
Inherited Members
Namespace: InsaneScatterbrain.Extensions
Syntax
public static class FieldInfoExtensions
Methods
GetAttribute<T>(FieldInfo)
Declaration
public static T GetAttribute<T>(this FieldInfo fieldInfo) where T : Attribute
Parameters
| Type | Name | Description |
|---|---|---|
| FieldInfo | fieldInfo |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
HasAttribute<T>(FieldInfo)
Declaration
public static bool HasAttribute<T>(this FieldInfo fieldInfo) where T : Attribute
Parameters
| Type | Name | Description |
|---|---|---|
| FieldInfo | fieldInfo |
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T |