EnhancedLocationInfo Class |
Exposes the accessors (getter, setter, OnInstanceInitialized) of a field or property,
as returned by the [!:AspectWeaverTransformationAdder.PrepareLocationForEnhancement]
method.
Namespace: PostSharp.Sdk.AspectInfrastructure
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class EnhancedLocationInfo
The EnhancedLocationInfo type exposes the following members.
Name | Description | |
---|---|---|
Field |
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.
| |
OnInstanceInitializedMethod |
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.
| |
Property |
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.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |