PostSharp 6.8 / / 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: 6.8.6.0 (6.8.6.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