INumberBase<TSelf>.TryConvertFromSaturating<TOther> Método

Definición

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

protected:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertFromSaturating(TOther value, [Runtime::InteropServices::Out] TSelf % result);
protected static abstract bool TryConvertFromSaturating<TOther> (TOther value, out TSelf result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertFromSaturating : 'Other * 'Self -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertFromSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther, ByRef result As TSelf) As Boolean

Parámetros de tipo

TOther

Tipo de value.

Parámetros

value
TOther

Valor que se usa para crear la instancia de TSelf.

result
TSelf

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

Devoluciones

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

Se aplica a