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

DeclarationIdentifier.GetDeclarationIdentifier Method

Gets the DeclarationIdentifier for a given declaration.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public static DeclarationIdentifier GetDeclarationIdentifier(
	MemberInfo declaration
)

Parameters

declaration
Type: System.Reflection.MemberInfo
A Type, MethodInfo, ConstructorInfo, FieldInfo, EventInfo or PropertyInfo.

Return Value

Type: DeclarationIdentifier
A DeclarationIdentifier that identifies declaration.
See Also