ValueTuple<T1>.ToString 方法

定义

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

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

返回

String

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

注解

此方法返回的字符串采用格式 (Item1,其中 Item1 表示字段的值 Item1The string returned by this method takes the form (Item1, where Item1 represents the value of the Item1 field. 如果字段值为 null ,则表示为 String.EmptyIf the field value is null, it is represented as String.Empty.

适用于