Byte.CreateChecked<TOther>(TOther) Método

Definición

Crea una instancia del tipo actual a partir de un valor, iniciando una excepción de desbordamiento para los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

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

Parámetros de tipo

TOther

Tipo de value.

Parámetros

value
TOther

Valor que se usa para crear la instancia de TSelf.

Devoluciones

Instancia de TSelf creada a partir de value.

Implementaciones

Se aplica a