UInt64.CreateChecked<TOther>(TOther) Metoda

Definicja

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

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static System::UInt64 CreateChecked(TOther value) = System::Numerics::INumberBase<System::UInt64>::CreateChecked;
public static ulong CreateChecked<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateChecked : 'Other -> uint64 (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateChecked(Of TOther As INumberBase(Of TOther)) (value As TOther) As ULong

Parametry typu

TOther

Typ .value

Parametry

value
TOther

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

Zwraca

Wystąpienie utworzone na TSelf podstawie valueelementu .

Implementuje

Dotyczy