ISimpleTypeProvider<TType>.GetTypeFromDefinition Method

Definition

Gets the type symbol for a type definition.

public:
 TType GetTypeFromDefinition(System::Reflection::Metadata::MetadataReader ^ reader, System::Reflection::Metadata::TypeDefinitionHandle handle, System::Byte rawTypeKind);
public TType GetTypeFromDefinition (System.Reflection.Metadata.MetadataReader reader, System.Reflection.Metadata.TypeDefinitionHandle handle, byte rawTypeKind);
abstract member GetTypeFromDefinition : System.Reflection.Metadata.MetadataReader * System.Reflection.Metadata.TypeDefinitionHandle * byte -> 'ype
Public Function GetTypeFromDefinition (reader As MetadataReader, handle As TypeDefinitionHandle, rawTypeKind As Byte) As TType

Parameters

reader
MetadataReader

The metadata reader that was passed to the signature decoder. It may be null.

handle
TypeDefinitionHandle

The type definition handle.

rawTypeKind
Byte

The kind of the type, as specified in the signature. To interpret this value use ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte).

Returns

TType

The type symbol.

Remarks

When the signature comes from a WinMD file, additional processing is needed to determine whether the target type is a value type or a reference type.

Applies to