ISignatureTypeProvider<TType,TGenericContext>.GetTypeFromSpecification(MetadataReader, TGenericContext, TypeSpecificationHandle, Byte) 方法
定义
获取类型规范的类型符号。Gets the type symbol for a type specification.
public:
TType GetTypeFromSpecification(System::Reflection::Metadata::MetadataReader ^ reader, TGenericContext genericContext, System::Reflection::Metadata::TypeSpecificationHandle handle, System::Byte rawTypeKind);
public TType GetTypeFromSpecification (System.Reflection.Metadata.MetadataReader reader, TGenericContext genericContext, System.Reflection.Metadata.TypeSpecificationHandle handle, byte rawTypeKind);
abstract member GetTypeFromSpecification : System.Reflection.Metadata.MetadataReader * 'GenericContext * System.Reflection.Metadata.TypeSpecificationHandle * byte -> 'ype
Public Function GetTypeFromSpecification (reader As MetadataReader, genericContext As TGenericContext, handle As TypeSpecificationHandle, rawTypeKind As Byte) As TType
参数
- reader
- MetadataReader
传递给签名解码器的元数据读取器。The metadata reader that was passed to the signature decoder. 它可能是 null。It may be null.
- genericContext
- TGenericContext
传递给签名解码器的上下文。The context that was passed to the signature decoder.
- handle
- TypeSpecificationHandle
类型规范句柄。The type specification handle.
- rawTypeKind
- Byte
在签名中指定的类型的种类。The kind of the type, as specified in the signature. 可使用 ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte) 来解释此值。To interpret this value, use ResolveSignatureTypeKind(MetadataReader, EntityHandle, Byte).
返回
- TType
类型规范的类型符号。The type symbol for the type specification.
注解
如果签名来自 WinMD 文件,则需要进行额外的处理,以确定目标类型是值类型还是引用类型。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.