Edit

Share via


SignatureDecoder<TType,TGenericContext>.DecodeType Method

Definition

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

Parameters

blobReader
BlobReader

The blob reader positioned at the leading SignatureTypeCode.

allowTypeSpecifications
Boolean

true to allow a TypeSpecificationHandle to follow a (CLASS | VALUETYPE) in the signature; false otherwise.

Returns

TType

The decoded type.

Exceptions

The reader was not positioned at a valid signature type.

Remarks

At present, the only context where allowTypeSpecifications might be true is in a LocalConstantSig as defined by the Portable PDB specification.

Applies to