Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IField­Or­Property / Is­Auto­Property­Or­Field

Property IsAutoPropertyOrField

IsAutoPropertyOrField

Gets a value indicating whether the declaration is an auto-property or a field, or null if the implementation of the property cannot be determined, for instance for properties in a referenced assembly.

Declaration
Nullable<bool> IsAutoPropertyOrField { get; }
Property Value
Type Description
Nullable<Boolean>
Remarks

When an automatic property has been overridden, this property will still return true, even if the actual property implementation no longer corresponds to the one of an automatic property.