UInt16.CreateChecked<TOther>(TOther) Metodo

Definizione

Crea un'istanza del tipo corrente da un valore, che genera un'eccezione di overflow per tutti i valori che non rientrano nell'intervallo rappresentabile del tipo corrente.

public:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static System::UInt16 CreateChecked(TOther value) = System::Numerics::INumberBase<System::UInt16>::CreateChecked;
public static ushort CreateChecked<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateChecked : 'Other -> uint16 (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateChecked(Of TOther As INumberBase(Of TOther)) (value As TOther) As UShort

Parametri di tipo

TOther

Tipo di value.

Parametri

value
TOther

Valore utilizzato per creare l'istanza di TSelf.

Restituisce

Istanza di TSelf creata da value.

Implementazioni

Si applica a