ISimpleTypeProvider<TType>.GetTypeFromDefinition(MetadataReader, TypeDefinitionHandle, Byte) 方法
定义
获取类型定义的类型符号。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
参数
- reader
- MetadataReader
传递给签名解码器的元数据读取器。The metadata reader that was passed to the signature decoder. 它可能是 null。It may be null.
- handle
- TypeDefinitionHandle
类型定义句柄。The type definition 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.
注解
如果签名来自 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.