INumberBase<TSelf>.CreateChecked<TOther>(TOther) Metoda

Definicja

Tworzy wystąpienie bieżącego typu z wartości, zgłaszając wyjątek przepełnienia dla wszystkich wartości, które wykraczają poza reprezentatywny zakres bieżącego typu.

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static override TSelf CreateChecked(TOther value);
public static virtual TSelf CreateChecked<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateChecked : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateChecked(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf

Parametry typu

TOther

Typ elementu value.

Parametry

value
TOther

Wartość użyta do utworzenia wystąpienia klasy TSelf.

Zwraca

TSelf

Wystąpienie utworzone na TSelf podstawie valueelementu .

Wyjątki

TOther nie jest obsługiwane.

value nie jest reprezentowana przez TSelfelement .

Dotyczy