Struct
UInt16
struct ushort
Module: System
Assembly: System.Runtime.dll
Source file: UInt16.rvn
Inheritance: Object → ValueType → UInt16
Implements: EquatableTo<UInt16>, Formattable, Number
A unsigned 16-bit integer.
Properties
2 items
Static member:
One: ushort
Development: gets one for this numeric type.
Static member:
Zero: ushort
Development: gets zero for this numeric type.
Methods
11 items
CompareTo(other: Self) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Required implementation (no default). Defined by ComparableTo<Self>.CompareTo · Defined by ComparableTo<Self>.CompareTo
CompareTo(other: ushort) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Equals(other: ushort) -> bool
Tests equality with another value of the same type without boxing.
Implements EquatableTo<UInt16>.Equals
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse(text: string, culture: Culture) -> Result<ushort, NumberParseError>
Parses explicit culture punctuation with strict three-digit grouping; whitespace is not accepted.
Static member:
Parse(value: string) -> Result<ushort, NumberParseError>
Parses the complete text using the strict, culture-independent grammar.
ToString(format: string, culture: Culture) -> string
Formats with explicit culture; unsupported formats or precision fault.
Implements Formattable.ToString
ToString(format: string) -> string
Formats with the current culture using empty/G/G0, D, F or N; precision is 0–99.
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString
Operators
4 items
Static member:
operator +(left: ushort, right: ushort) -> ushort
Development: Adds two values.
Static member:
operator /(left: ushort, right: ushort) -> ushort
Development: Divides left by right.
Static member:
operator *(left: ushort, right: ushort) -> ushort
Development: Multiplies two values.
Static member:
operator -(left: ushort, right: ushort) -> ushort
Development: Subtracts right from left.