System.Tuple<T1,T2>.ToString Method

Returns a string that represents the value of this Tuple`2 instance.

Syntax

public override string ToString ()

Returns

The string representation of this Tuple`2 object.

Remarks

The string returned by this method takes the form (Item1, Item2), where Item1 and Item2 represent the values of the Tuple`2.Item1 and Tuple`2.Item2 properties. If either property value is null, it is represented as string.Empty.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0