MetadataCache..::..GetMetadata<(Of <(<'T>)>)> Method

Gets the metadata for the indicated type.

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

Syntax


public static ClassMetadata GetMetadata<T>()
Public Shared Function GetMetadata(Of T) As ClassMetadata

Type Parameters

T
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.