Class FieldInfoExtensions
Inheritance
object
FieldInfoExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|---|
System.Reflection.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 |
---|---|---|
System.Reflection.FieldInfo | fieldInfo |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T |