Int16.CreateTruncating<TOther>(TOther) Método
Definição
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, truncando todos os valores que ficam fora do intervalo representável do tipo atual.
public:
generic <typename TOther>
where TOther : System::Numerics::INumberBase<TOther> static short CreateTruncating(TOther value) = System::Numerics::INumberBase<short>::CreateTruncating;
public static short CreateTruncating<TOther> (TOther value) where TOther : System.Numerics.INumberBase<TOther>;
static member CreateTruncating : 'Other -> int16 (requires 'Other :> System.Numerics.INumberBase<'Other>)
Public Shared Function CreateTruncating(Of TOther As INumberBase(Of TOther)) (value As TOther) As Short
Parâmetros de tipo
- TOther
O tipo de value
.
Parâmetros
- value
- TOther
O valor usado para criar a instância de TSelf
.
Retornos
Uma instância de TSelf
criada com base value
em , truncando se value
estiver fora do intervalo representável de TSelf
.
Implementações
Aplica-se a
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de