Class MemberWrapper
- Namespace
- Elegy.Common.Reflection
- Assembly
- Elegy.Common.dll
Wrapper for reflected C# members.
public abstract class MemberWrapper
- Inheritance
-
MemberWrapper
- Derived
- Inherited Members
Properties
Attributes
Attributes of this property or method.
public List<Attribute> Attributes { get; }
Property Value
Methods
GetAttribute<TAttribute>()
Gets an attribute if it's applied to this property.
public TAttribute? GetAttribute<TAttribute>() where TAttribute : Attribute
Returns
- TAttribute
Type Parameters
TAttribute
HasAttribute<TAttribute>()
Returns whether or not this property has an instace of TAttribute
.
public bool HasAttribute<TAttribute>() where TAttribute : Attribute
Returns
Type Parameters
TAttribute