| Namespace: | Sirenix.Utilities |
| Assembly: | Sirenix.Utilities |
public static class MemberInfoExtensions
public static MemberInfo DeAlias(this MemberInfo memberInfo, bool throwOnNotAliased = false)
| System.Reflection.MemberInfo | memberInfo | The member to check. |
| System.Boolean | throwOnNotAliased | if set to |
| System.Reflection.MemberInfo |
| System.ArgumentException | The member was not aliased; this only occurs if throwOnNotAliased is true. |
public static T GetAttribute<T>(this ICustomAttributeProvider member)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member |
| T |
| T |
public static T GetAttribute<T>(this ICustomAttributeProvider member, bool inherit)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member | |
| System.Boolean | inherit |
| T |
| T |
public static Attribute[] GetAttributes(this ICustomAttributeProvider member)
| System.Reflection.ICustomAttributeProvider | member | The member. |
| System.Attribute[] |
public static Attribute[] GetAttributes(this ICustomAttributeProvider member, bool inherit)
| System.Reflection.ICustomAttributeProvider | member | The member. |
| System.Boolean | inherit | If true, specifies to also search the ancestors of element for custom attributes. |
| System.Attribute[] |
public static IEnumerable<T> GetAttributes<T>(this ICustomAttributeProvider member)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member | The member. |
| System.Collections.Generic.IEnumerable<T> |
| T |
public static IEnumerable<T> GetAttributes<T>(this ICustomAttributeProvider member, bool inherit)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member | The member. |
| System.Boolean | inherit | If true, specifies to also search the ancestors of element for custom attributes. |
| System.Collections.Generic.IEnumerable<T> |
| T |
public static string GetNiceName(this MemberInfo member)
| System.Reflection.MemberInfo | member |
| System.String |
public static bool IsAlias(this MemberInfo memberInfo)
| System.Reflection.MemberInfo | memberInfo | The member to check. |
| System.Boolean |
|
public static bool IsDefined<T>(this ICustomAttributeProvider member)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member |
| System.Boolean |
| T |
public static bool IsDefined<T>(this ICustomAttributeProvider member, bool inherit)
where T : Attribute
| System.Reflection.ICustomAttributeProvider | member | |
| System.Boolean | inherit |
| System.Boolean |
| T |
public static bool IsStatic(this MemberInfo member)
| System.Reflection.MemberInfo | member | The member. |
| System.Boolean |
|
| System.NotSupportedException |
public static bool SignaturesAreEqual(this MemberInfo a, MemberInfo b)
| System.Reflection.MemberInfo | a | |
| System.Reflection.MemberInfo | b |
| System.Boolean |