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

Constructor FieldOrPropertyInfo

FieldOrPropertyInfo(FieldInfo)

Initializes a new instance of the FieldOrPropertyInfo class that represents a field.

Declaration
public FieldOrPropertyInfo(FieldInfo fieldInfo)
Parameters
Type Name Description
FieldInfo fieldInfo

The field.

FieldOrPropertyInfo(PropertyInfo)

Initializes a new instance of the FieldOrPropertyInfo class that represents a property.

Declaration
public FieldOrPropertyInfo(PropertyInfo propertyInfo)
Parameters
Type Name Description
PropertyInfo propertyInfo

The property.