PostSharp 4.3 / / Post­Sharp Documentation / 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: 4.3.48.0 (4.3.48.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