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