Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Run­Time / Field­Or­Property­Info

Class FieldOrPropertyInfo

Represents a reflection FieldInfo or a PropertyInfo.

Inheritance
FieldOrPropertyInfo
Namespace: Metalama.Framework.RunTime
Assembly: Metalama.Framework.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 FieldInfo if this represents a field, otherwise returns null.

AsPropertyOrIndexer

Gets the 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)