value · System
Int16
public value Int16 : ISignedNumber<i16>, IHashable<i16>, IComparable<i16>, IToString
- Tipo
- value
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, miembros de i16
- Archivo fuente
Primitives.ant
Herencia
- Interfaces
-
ISignedNumber<TSelf>IHashable<TSelf>IComparable<TSelf>IToString - Todas las interfaces
-
IComparable<TSelf>IHashable<TSelf>INumber<TSelf>ISignedNumber<TSelf>IToString
Propiedades
Métodos
ToString(str format) : str
#
As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").
ToString() : str
#
Constantes
Código fuente
Int16 en Antril, descompilado a partir de su Larva HIR.
// System.Int16 — System.Core (decompiled from Larva HIR)
into namespace System
{
[Primitive("i16")]
public value Int16 : ISignedNumber<i16>, IHashable<i16>, IComparable<i16>, IToString
{
public:
/// The smallest i16.
const i16 MinValue = -32768;
/// The largest i16.
const i16 MaxValue = 32767;
[Inline]
static FromF64(f64 value) : i16 => (i16)value;
[Inline]
static ToF64(i16 value) : f64 => value;
/// As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
ToString(str format) : str => NumberFormat.FormatInteger((u16)this, 16, true, format);
ToString() : str => Number.Format(this);
Hash() : u64 => (u16)this;
Equals(i16 other) : bool => this == other;
CompareTo(i16 other) : i32 => this < other ? -1 : this > other ? 1 : 0;
static i16 Zero
{
get => 0;
}
static i16 One
{
get => 1;
}
static i16 NegativeOne
{
get => -1;
}
}
}