Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Int128

Assembly: System.Runtime

Represents a 128-bit signed integer.

Methods

public int
CompareTo​(Int128 value)
value An object to compare with this instance.
Returns <para>A value that indicates the relative order of the objects being compared. The return value has these meanings:</para> <list type="table"> <listheader> <term>Value</term> <description>Meaning</description> </listheader> <item> <term>Less than zero</term> <description>This instance precedes <paramref name="value" /> in the sort order.</description> </item> <item> <term>Zero</term> <description>This instance occurs in the same position in the sort order as <paramref name="value" />.</description> </item> <item> <term>Greater than zero</term> <description>This instance follows <paramref name="value" /> in the sort order.</description> </item> </list>
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int
CompareTo​(object value)
value An object to compare with this instance.
Returns <para>A value that indicates the relative order of the objects being compared. The return value has these meanings:</para> <list type="table"> <listheader> <term>Value</term> <description>Meaning</description> </listheader> <item> <term>Less than zero</term> <description>This instance precedes <paramref name="value" /> in the sort order.</description> </item> <item> <term>Zero</term> <description>This instance occurs in the same position in the sort order as <paramref name="value" />.</description> </item> <item> <term>Greater than zero</term> <description>This instance follows <paramref name="value" /> in the sort order.</description> </item> </list>
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public bool
Equals​(Int128 other)
other An object to compare with this object.
Returns <see langword="true" /> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false" /> .
Indicates whether the current object is equal to another object of the same type.
public bool
Equals​(object obj)
obj The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
public int
GetHashCode​()
Returns A hash code for the current object.
Serves as the default hash function.
public string
ToString​()
Returns A string that represents the current object.
Returns a string that represents the current object.
public string
ToString​(IFormatProvider provider)
provider An object that supplies culture-specific formatting information.
Returns The string representation of the value of this instance as specified by <paramref name="provider" /> .
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
public string
ToString​(string format)
format The format to use, or a <see langword="null" /> reference to use the default format defined for the type of the <see cref="T:System.IFormattable" /> implementation.
Returns The string representation of the value of this instance as specified by <paramref name="format" /> .
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
public string
ToString​(string format, IFormatProvider provider)
format The format to use, or a <see langword="null" /> reference to use the default format defined for the type of the <see cref="T:System.IFormattable" /> implementation.
provider An object that supplies culture-specific formatting information.
Returns The value of the current instance in the specified format.
Formats the value of the current instance using the specified format.
public bool
TryFormat​(Span`1 utf8Destination, Int32& bytesWritten, ReadOnlySpan`1 format = null, IFormatProvider provider = null)
public bool
TryFormat​(Span`1 destination, Int32& charsWritten, ReadOnlySpan`1 format = null, IFormatProvider provider = null)
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .