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

Definição

Cria uma instância do tipo atual de um valor, saturando todos os valores que estão fora do intervalo representável do tipo atual.

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

Parâmetros de tipo

TOther

O tipo de value.

Parâmetros

value
TOther

O valor usado para criar a instância de TSelf.

Retornos

TSelf

Uma instância de criação de TSelfvaluesaturação se value estiver fora do intervalo representável de TSelf.

Exceções

Não há suporte para TOther.

Aplica-se a