SignatureDecoder<TType,TGenericContext>.DecodeType(BlobReader, Boolean) Método

Definição

Decodifica um tipo inserido na assinatura e avança o leitor após o tipo.Decodes a type embedded in a signature and advances the reader past the type.

public TType DecodeType (ref System.Reflection.Metadata.BlobReader blobReader, bool allowTypeSpecifications = false);
member this.DecodeType : BlobReader * bool -> 'ype
Public Function DecodeType (ByRef blobReader As BlobReader, Optional allowTypeSpecifications As Boolean = false) As TType

Parâmetros

blobReader
BlobReader

O leitor de blob posicionado no entrelinhamento SignatureTypeCode.The blob reader positioned at the leading SignatureTypeCode.

allowTypeSpecifications
Boolean

true para permitir que um TypeSpecificationHandle siga uma (CLASS | VALUETYPE) na assinatura; caso contrário, false.true to allow a TypeSpecificationHandle to follow a (CLASS | VALUETYPE) in the signature; false otherwise.

Retornos

TType

O tipo decodificado.The decoded type.

Exceções

O leitor não estava posicionado em um tipo de assinatura válido.The reader was not positioned at a valid signature type.

Comentários

No momento, o único contexto em que allowTypeSpecifications pode estar true em um LocalConstantSig, conforme definido pela especificação PDB portátil.At present, the only context where allowTypeSpecifications might be true is in a LocalConstantSig as defined by the Portable PDB specification.

Aplica-se a