PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Method­Usage­Code­Reference Class / Method­Usage­Code­Reference Properties / Method­Usage­Code­Reference.​Used­Type Property

MethodUsageCodeReference.UsedType Property

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.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.15.0 (6.5.15.0)
Syntax
C#
public Type UsedType { get; }

Property Value

Type: Type
See Also