value · System
UInt16
public value UInt16 : INumber<u16>, IHashable<u16>, IComparable<u16>, IToString
- Tipo
- value
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, miembros de u16
- Archivo fuente
Primitives.ant
Herencia
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
UInt16 en Antril, descompilado a partir de su Larva HIR.
// System.UInt16 — System.Core (decompiled from Larva HIR)
into namespace System
{
[Primitive("u16")]
public value UInt16 : INumber<u16>, IHashable<u16>, IComparable<u16>, IToString
{
public:
/// The smallest u16.
const u16 MinValue = 0;
/// The largest u16.
const u16 MaxValue = 65535;
[Inline]
static FromF64(f64 value) : u16 => (u16)value;
[Inline]
static ToF64(u16 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(this, 16, false, format);
ToString() : str => Number.Format((i64)this);
Hash() : u64 => this;
Equals(u16 other) : bool => this == other;
CompareTo(u16 other) : i32 => this < other ? -1 : this > other ? 1 : 0;
static u16 Zero
{
get => 0;
}
static u16 One
{
get => 1;
}
}
}