PostSharp6.2/API Reference/Post­Sharp.​Reflection Namespace/IMetadata­Emitter Interface/IMetadata­Emitter Methods/IMetadata­Emitter.​Get­Metadata­Index Method

IMetadataEmitter.GetMetadataIndex Method

Gets the index of a serialized metadata reference.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
int GetMetadataIndex(
	Object metadata
)

Parameters

metadata
Type: System.Object
A reflection object.

Return Value

Type: Int32
The index of metadata, to be serialized and deserialized at runtime with GetMetadata(Int32).
See Also