PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Enhanced­Location­Info Class / Enhanced­Location­Info Properties

EnhancedLocationInfo Properties

The EnhancedLocationInfo type exposes the following members.

Properties
  NameDescription
Public propertyField
Gets the FieldDefDeclaration, or null. If the location is a field, this property is assigned to the field itself. If the location is an automatic property, this property is assigned to the backing field. If the location is a non-automatic property, this property equals to null.
Public propertyOnInstanceInitializedMethod
Gets the OnInstanceInitialized method, or null if none has been required. OnInstanceInitialized is a pseudo-accessor added by the aspect infrastructure (AspectInfrastructureTask), invoked just after the base constructor has been called. The method can be used as a standard target for transformations.
Public propertyProperty
Gets the PropertyDeclaration. If the location is a field, this property is assigned to the generated property that wraps the initial field. Otherwise, the value of the property is the target property itself.
See Also