PostSharpAPI ReferencePost­Sharp.​ReflectionIMetadata­EmitterGet­Metadata­Index
Open sandboxFocus

IMetadataEmitter.GetMetadataIndex Method

GetMetadataIndex(Object)

Gets the index of a serialized metadata reference.

Declaration
int GetMetadataIndex(object metadata)
Parameters
Type Name Description
Object metadata

A reflection object.

Returns
Type Description
Int32

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