-
Notifications
You must be signed in to change notification settings - Fork 2
BizArk.Core.Extensions.AttributeExt
Brian Brewder edited this page Apr 1, 2017
·
1 revision
Back to BizArk.Core API Reference
Provides extension methods for working with attributes.
-
public static T GetAttribute<T>(this PropertyDescriptor prop) where T : Attribute- Gets the specified attribute from the PropertyDescriptor. -
public static T GetAttribute<T>(this PropertyInfo prop, bool inherit) where T : Attribute- Gets the specified attribute from the PropertyDescriptor. -
public static T GetAttribute<T>(this Type type, bool inherit) where T : Attribute- Gets the specified attribute from the type. -
public static T GetAttribute<T>(this Assembly asm) where T : Attribute- Gets the specified attribute for the assembly. -
public static T GetAttribute<T>(this object obj, bool inherit) where T : Attribute- Gets the specified attribute from the PropertyDescriptor. -
public static T GetAttribute<T>(this Enum val) where T : Attribute- Gets the specified attribute from the Enum. -
public static T[] GetAttributes<T>(this PropertyDescriptor prop) where T : Attribute- Gets the specified attributes from the PropertyDescriptor. -
public static string GetDescription(this Enum e)- Gets the value from the DescriptionAttribute for the given enumeration value.