Επεξεργασία

Κοινή χρήση μέσω


ISimpleTypeProvider<TType>.GetTypeFromReference Method

Definition

Gets the type symbol for a type reference.

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

Parameters

reader
MetadataReader

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

handle
TypeReferenceHandle

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