MethodUsageCodeReference Class
Represents a relationship between a declaration (Type, FieldInfo, MethodInfo or ConstructorInfo) and a method whose instructions (method body) use the declaration.
Inheritance Hierarchy
System.Object
  PostSharp.Reflection.MethodUsageCodeReference

Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public sealed class MethodUsageCodeReference : ICodeReference

The MethodUsageCodeReference type exposes the following members.

Properties
  NameDescription
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.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also