ISimpleTypeProvider<TType>.GetTypeFromDefinition Method

Definition

Gets the type symbol for a type definition.

C#
public TType GetTypeFromDefinition(System.Reflection.Metadata.MetadataReader reader, System.Reflection.Metadata.TypeDefinitionHandle handle, byte rawTypeKind);

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

Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)