PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Declaration­Identifier Structure / Declaration­Identifier Methods / Declaration­Identifier.​Get­Declaring­Type­Identifier Method

DeclarationIdentifier.GetDeclaringTypeIdentifier Method

Gets the DeclarationIdentifier that represents the declaring type of the declaration represented by the current DeclarationIdentifier.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public DeclarationIdentifier GetDeclaringTypeIdentifier()

Return Value

Type: DeclarationIdentifier
The DeclarationIdentifier that represents the declaring type of the declaration represented by the current DeclarationIdentifier. If the current DeclarationIdentifier already represents a type, this method returns the current DeclarationIdentifier.
See Also