INumberBase<TSelf>.CreateTruncating<TOther>(TOther) Método

Definición

Crea una instancia del tipo actual a partir de un valor, truncando 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 override TSelf CreateTruncating(TOther value);
public static virtual TSelf CreateTruncating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateTruncating : 'Other -> 'Self (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Overrides Function CreateTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther) As TSelf

Parámetros de tipo

TOther

Tipo de value.

Parámetros

value
TOther

Valor que se usa para crear la instancia de TSelf.

Devoluciones

TSelf

Instancia de creada a partir de TSelfvalue, truncando si value se encuentra fuera del intervalo representable de TSelf.

Excepciones

No se admite TOther.

Se aplica a