PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
public Type UsedType { get; }

Property Value

Type: Type
See Also