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

EnhancedLocationInfo Class

Exposes the accessors (getter, setter, OnInstanceInitialized) of a field or property, as returned by the [!:AspectWeaverTransformationAdder.PrepareLocationForEnhancement] method.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectInfrastructure.EnhancedLocationInfo

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public class EnhancedLocationInfo

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.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also