PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Declaration­Identifier Structure / Declaration­Identifier Properties / Declaration­Identifier.​Member­Index Property

DeclarationIdentifier.MemberIndex Property

Gets a number that uniquely identifies the member inside its declaring type, for the given member kind.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: (
public int MemberIndex { get; }

Property Value

Type: Int32

The value of this property is guaranteed to be smaller than the total number of methods in the declaring type.

The value is guaranteed to be unique only in the declaring type, not in the set of base types. Numbering of members restarts at 0 for every derived type.

See Also