Double.INumberBase<Double>.TryConvertToSaturating<TOther> Método

Definición

Intenta convertir una instancia del tipo actual en otro tipo, saturando los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<System.Double>.TryConvertToSaturating(double value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<double>::TryConvertToSaturating;
static bool INumberBase<double>.TryConvertToSaturating<TOther> (double value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.Double>.TryConvertToSaturating : double * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToSaturating(Of TOther As INumberBase(Of TOther)) (value As Double, ByRef result As TOther) As Boolean Implements INumberBase(Of Double).TryConvertToSaturating

Parámetros de tipo

TOther

Tipo al que value se debe convertir.

Parámetros

value
Double

Valor que se usa para crear la instancia de TOther.

result
TOther

Cuando este método devuelve , contiene una instancia de TOther convertida de value.

Devoluciones

false es si TOther no se admite; de lo contrario, truees .

Implementaciones

Se aplica a