INumberBase<TSelf>.TryConvertFromChecked<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, lançando uma exceção de overflow para quaisquer valores que estejam fora do intervalo representável do tipo atual.
protected:
generic <typename TOther>
where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertFromChecked(TOther value, [Runtime::InteropServices::Out] TSelf % result);
protected static abstract bool TryConvertFromChecked<TOther>(TOther value, out TSelf result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertFromChecked : 'Other * 'Self -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertFromChecked(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.
Exceções
value não é representável por TSelf.