INumberBase<TSelf>.TryConvertFromSaturating<TOther> Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Tenta converter um valor para uma instância do tipo atual, saturando quaisquer valores que estejam fora do intervalo representável do tipo atual.
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 Genérico
- TOther
O tipo de value.
Parâmetros
- value
- TOther
O valor que é usado para criar a instância de TSelf.
- result
- TSelf
Quando este método retorna, contém uma instância de TSelf convertida a partir de value.
Devoluções
false se TOther não for suportado; caso contrário, true.