ValueTuple<T1,T2>.ToString 方法

定义

返回表示此 ValueTuple<T1,T2> 实例的值的字符串。Returns a string that represents the value of this ValueTuple<T1,T2> instance.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

ValueTuple<T1,T2> 实例的字符串表示形式。The string representation of this ValueTuple<T1,T2> instance.

注解

此方法返回的字符串采用窗体(Item1Item2,其中Item1Item2表示 Item1Item2 字段的值。The string returned by this method takes the form (Item1, Item2, where Item1 and Item2 represent the values of the Item1 and Item2 fields. 如果 null任何字段值,则它将表示为 String.EmptyIf any of the field values is null, it is represented as String.Empty.

适用于