PostSharp4.3//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: 4.3.48.0 (4.3.48.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