PostSharp6.4//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.4.11.0 (6.4.11.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