MethodUsageCodeReference Class |
Represents a relationship between a declaration (Type,
FieldInfo, MethodInfo or ConstructorInfo)
and a method whose instructions (method body) use the declaration.

Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)

C#
public sealed class MethodUsageCodeReference : ICodeReference
The MethodUsageCodeReference type exposes the following members.

Name | Description | |
---|---|---|
![]() | Instructions |
Gets the instructions that reference UsedDeclaration.
|
![]() | UsedDeclaration | |
![]() | UsedType |
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.
|
![]() | UsingMethod |
Gets the method (MethodInfo or ConstructorInfo)
whose body uses the declaration.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
