MetadataCache..::..GetMetadata Method (Type)

Gets the metadata for the indicated type.

Namespace:  Tortuga.Anchor.Metadata
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static ClassMetadata GetMetadata(
	Type type
)
Public Shared Function GetMetadata ( _
	type As Type _
) As ClassMetadata

Parameters

type
Type: Type
The type of interest

Return Value

A thread-safe copy of the class's metadata

Remarks


Actually fetching the metadata may require taking a lock. Therefore it is advisable to locally cache the metadata as well.