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

Definição

Tenta converter uma instância do tipo atual em outro tipo, truncando todos os valores que estão fora do intervalo representável do tipo atual.

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

O tipo no qual value deve ser convertido.

Parâmetros

value
UInt32

O valor usado para criar a instância de TOther.

result
TOther

Quando esse método retorna, contém uma instância de TOther convertida de value.

Retornos

false se TOther não houver suporte; caso contrário, true.

Implementações

Aplica-se a