Half.CreateSaturating<TOther>(TOther) Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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 Half CreateSaturating(TOther value) = System::Numerics::INumberBase<Half>::CreateSaturating;
public static Half CreateSaturating<TOther>(TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateSaturating : 'Other -> Half (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateSaturating(Of TOther As INumberBase(Of TOther)) (value As TOther) As Half
- TOther
O tipo de value
.
- value
- TOther
O valor usado para criar a instância do TSelf
.
Uma instância de TSelf
criada a partir de value
, saturando se value
estiver fora do intervalo representável de TSelf
.
Produto | Versões |
---|---|
.NET | 7, 8, 9, 10 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: