SerializationInfo.GetDouble(String) Metodo
Definizione
Restituisce un valore in virgola mobile e precisione doppia dall'archivio SerializationInfo.Retrieves a double-precision floating-point value from the SerializationInfo store.
public:
double GetDouble(System::String ^ name);
public double GetDouble (string name);
member this.GetDouble : string -> double
Public Function GetDouble (name As String) As Double
Parametri
- name
- String
Nome associato al valore da recuperare.The name associated with the value to retrieve.
Restituisce
Il valore in virgola mobile e precisione doppia associato a name
.The double-precision floating-point value associated with name
.
Eccezioni
name
è null
.name
is null
.
Il valore associato a name
non può essere convertito in un numero in virgola mobile e precisione doppia.The value associated with name
cannot be converted to a double-precision floating-point value.
Non è possibile trovare un elemento con il nome specificato nell'istanza corrente.An element with the specified name is not found in the current instance.
Commenti
Se il valore è un valore Double o può essere convertito in un valore Double, viene restituito tale valore; in caso contrario, InvalidCastException viene generata un'eccezione.If the value is a double, or can be converted to a double, that value is returned; otherwise, a InvalidCastException is thrown. Tutte le conversioni vengono eseguite dall'oggetto IFormatterConverter associato a SerializationInfo .All conversions are done by the IFormatterConverter associated with this SerializationInfo.