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

Definição

Tenta converter uma instância do tipo atual em outro tipo, saturando 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.UInt64>.TryConvertToSaturating(System::UInt64 value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<System::UInt64>::TryConvertToSaturating;
static bool INumberBase<ulong>.TryConvertToSaturating<TOther> (ulong value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<System.UInt64>.TryConvertToSaturating : uint64 * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToSaturating(Of TOther As INumberBase(Of TOther)) (value As ULong, ByRef result As TOther) As Boolean Implements INumberBase(Of ULong).TryConvertToSaturating

Parâmetros de tipo

TOther

O tipo no qual value deve ser convertido.

Parâmetros

value
UInt64

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

result
TOther

Quando este 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