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

Definição

Tenta converter uma instância do tipo atual em outro tipo, saturando todos os valores que ficam fora do intervalo representável do tipo atual.

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

Parâmetros de tipo

TOther

O tipo no qual value deve ser convertido.

Parâmetros

value
SByte

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