UInt32.INumberBase<UInt32>.TryConvertToTruncating<TOther> Método

Definición

Intenta convertir una instancia del tipo actual en otro tipo, truncando los valores que se encuentran fuera del intervalo representable del tipo actual.

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

Parámetros de tipo

TOther

Tipo al que value se debe convertir.

Parámetros

value
UInt32

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