PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Member­Ref­Declaration Class / Member­Ref­Declaration Properties / Member­Ref­Declaration.​Declaring­Type Property

MemberRefDeclaration.DeclaringType Property

Gets the declaring IType.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public IType DeclaringType { get; }

Property Value

Type: IType
The declaring type (TypeRefDeclaration or TypeSpecDeclaration) or null if ResolutionScope is not a type.
See Also