FieldOrPropertyInfo Class
Represents a reflection System.Reflection.FieldInfo or a System.Reflection.PropertyInfo.
Inheritance
Namespace: Metalama.Framework.RunTime
Assembly: Metalama.Framework.RunTime.dll
Syntax
public class FieldOrPropertyInfo : MemberInfo
Constructors
Name | Description |
---|---|
FieldOrPropertyInfo(FieldInfo) | Initializes a new instance of the FieldOrPropertyInfo class that represents a field. |
FieldOrPropertyInfo(PropertyInfo) | Initializes a new instance of the FieldOrPropertyInfo class that represents a property. |
Properties
Name | Description |
---|---|
AsField | Gets the System.Reflection.FieldInfo if this represents a field, otherwise returns null. |
AsPropertyOrIndexer | Gets the System.Reflection.PropertyInfo if this represents a property, otherwise returns null. |
DeclaringType | |
MemberType | |
Name | |
ReflectedType | |
UnderlyingMemberInfo | |
ValueType |
Methods
Name | Description |
---|---|
GetCustomAttributes(Boolean) | |
GetCustomAttributes(Type, Boolean) | |
GetValue(Object) | |
IsDefined(Type, Boolean) | |
SetValue(Object, Object) |