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.​ValueTuple
Assembly: System.Runtime
Provides static methods for creating value tuples.
Methods
public
int
CompareTo​(ValueTuple other)
other
The object to compare with the current instance.
Returns This method always returns 0.
Compares the current <see cref="T:System.ValueTuple" /> instance to a specified <see cref="T:System.ValueTuple" /> instance.
public
bool
Equals​(object obj)
obj
The object to compare to the current instance.
Returns <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.ValueTuple" /> instance; otherwise, <see langword="false" /> .
Returns a value that indicates whether the current <see cref="T:System.ValueTuple" /> instance is equal to a specified object.
public
bool
Equals​(ValueTuple other)
other
The value tuple to compare with the current instance.
Returns This method always returns <see langword="true" /> .
Determines whether two <see cref="T:System.ValueTuple" /> instances are equal. This method always returns <see langword="true" /> .
public
int
GetHashCode​() Returns This method always return 0.
Returns the hash code for the current <see cref="T:System.ValueTuple" /> instance.
public
string
ToString​() Returns This method always returns "()".
Returns the string representation of this <see cref="T:System.ValueTuple" /> instance.
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" /> .