Class MemberInfoExtensions
Inheritance
System.Object
MemberInfoExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Mapping.Utils
Assembly: Dse.dll
Syntax
public static class MemberInfoExtensions
Methods
GetFirstAttribute<TAttribute>(MemberInfo, Boolean)
Declaration
public static TAttribute GetFirstAttribute<TAttribute>(MemberInfo member, bool inherit)
where TAttribute : Attribute
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | member | |
System.Boolean | inherit |
Returns
Type | Description |
---|---|
TAttribute |
Type Parameters
Name | Description |
---|---|
TAttribute |
HasAttribute<TAttribute>(MemberInfo, Boolean)
Declaration
public static bool HasAttribute<TAttribute>(MemberInfo member, bool inherit)
where TAttribute : Attribute
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | member | |
System.Boolean | inherit |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
TAttribute |