PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Method­Usage­Code­Reference Class / Method­Usage­Code­Reference Properties

MethodUsageCodeReference Properties

The MethodUsageCodeReference type exposes the following members.

Public propertyInstructions
Gets the instructions that reference UsedDeclaration.
Public propertyUsedDeclaration
Gets the declaration (Type, MethodInfo or ConstructorInfo) used by the method.
Public propertyUsedType
Gets the Type used by the method. If the current object represents a reference to a MethodInfo or ConstructorInfo, this property returns the declaring type of the method or constructor.
Public propertyUsingMethod
Gets the method (MethodInfo or ConstructorInfo) whose body uses the declaration.
See Also