PostSharp//API Reference/Post­Sharp.​Reflection/Declaration­Identifier
Open sandboxFocus

Class DeclarationIdentifier

Encapsulates a unique identifier of a declaration. The identifier does not contain the kind of declaration. Different declarations of different kinds can have the same identifier.

Inheritance
DeclarationIdentifier
Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
public sealed class DeclarationIdentifier : ValueType

Constructors

Name Description
DeclarationIdentifier(Int64)

Fields

Name Description
MaxMemberIndex

Maximum number of the same kind in the same type supported by the DeclarationIdentifier class.

MaxTypeIndex

Maximum number of types per assembly supported by the DeclarationIdentifier class.

Properties

Name Description
AssemblyId

Gets a 29-bit of the name of the assembly containing the declaration represented by the current DeclarationIdentifier.

IsNull

Determines whether the current DeclarationIdentifier is null.

MemberIndex

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

Null

Gets a null instance of the DeclarationIdentifier type/

TypeIndex

Gets a number that uniquely identifies the type inside its declaring assembly.

Methods

Name Description
Equals(DeclarationIdentifier)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetDeclarationIdentifier(MemberInfo)

Gets the DeclarationIdentifier for a given declaration.

GetDeclaringTypeIdentifier()

Gets the DeclarationIdentifier that represents the declaring type of the declaration represented by the current DeclarationIdentifier.

GetHashCode()

Returns the hash code for this instance.

Operators

Name Description
Equality(DeclarationIdentifier, DeclarationIdentifier)

Determines whether two instances of the DeclarationIdentifier type are equal.

Inequality(DeclarationIdentifier, DeclarationIdentifier)

Determines whether two instances of the DeclarationIdentifier type are different.