Click or drag to resize

MemberInfoExtensions Class

Defines extensions methods related to MemberInfo objects and derived types (e.g., FieldInfo, PropertyInfo, MethodInfo, etc.).
Inheritance Hierarchy
System.Object
  GSF.Reflection.MemberInfoExtensions

Namespace: GSF.Reflection
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
public static class MemberInfoExtensions
View Source

The MemberInfoExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAttributeExists<TMemberInfo, TAttribute> Returns a boolean flag that determines if the specified TAttribute exists.
Public Extension MethodGetFriendlyClassName<TMemberInfo> Gets the friendly class name of the provided MemberInfo object, trimming generic parameters.
Public Extension MethodTryGetAttribute<TMemberInfo>(TMemberInfo, String, Attribute) Attempts to get the specified attribute from a MemberInfo object, returning true if it does.
Public Extension MethodTryGetAttribute<TMemberInfo>(TMemberInfo, Type, Attribute) Attempts to get the specified attribute from a MemberInfo object, returning true if it does.
Public Extension MethodTryGetAttribute<TMemberInfo, TAttribute>(TMemberInfo, TAttribute) Attempts to get the specified attribute from a MemberInfo object, returning true if it does.
Public Extension MethodTryGetAttributes<TMemberInfo>(TMemberInfo, String, Attribute[]) Attempts to get the specified attributes from a MemberInfo object, returning true if it does.
Public Extension MethodTryGetAttributes<TMemberInfo>(TMemberInfo, Type, Attribute[]) Attempts to get the specified attributes from a MemberInfo object, returning true if it does.
Public Extension MethodTryGetAttributes<TMemberInfo, TAttribute>(TMemberInfo, TAttribute[]) Attempts to get the specified attributes from a MemberInfo object, returning true if it does.
Top
See Also