BlobReader.ReadConstant(ConstantTypeCode) Metodo
Definizione
Legge un valore costante (vedere la sezione 22.9 della partizione II di ECMA-335) dalla posizione corrente.Reads a constant value (see ECMA-335 Partition II section 22.9) from the current position.
public:
System::Object ^ ReadConstant(System::Reflection::Metadata::ConstantTypeCode typeCode);
public object? ReadConstant (System.Reflection.Metadata.ConstantTypeCode typeCode);
public object ReadConstant (System.Reflection.Metadata.ConstantTypeCode typeCode);
member this.ReadConstant : System.Reflection.Metadata.ConstantTypeCode -> obj
Public Function ReadConstant (typeCode As ConstantTypeCode) As Object
Parametri
- typeCode
- ConstantTypeCode
Restituisce
Valore boxed costante.A boxed constant value. Per evitare di allocare l'oggetto, usare direttamente i metodi Read*.To avoid allocating the object use Read* methods directly.
Eccezioni
Errore durante la lettura dal BLOB.Error while reading from the blob.
typeCode
non è un oggetto ConstantTypeCode valido.typeCode
is not a valid ConstantTypeCode.
Commenti
Le costanti di tipo String sono codificate come stringhe UTF16, da usare ReadUTF16(Int32) per leggerle.Constants of type String are encoded as UTF16 strings, use ReadUTF16(Int32) to read them.