Memory<T>.ToString 方法

定义

返回此 Memory<T> 对象的字符串表示形式。Returns the string representation of this Memory<T> object.

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

返回

String

Memory<T> 对象的字符串表示形式。the string representation of this Memory<T> object.

注解

对于 Memory<Char>ToString 方法返回一个 String ,该字符串包含由指向的字符 Memory<T>For a Memory<Char>, the ToString method returns a String that contains the characters pointed to by the Memory<T>. 否则,它将返回, String 其中包含类型的名称和包含的元素的数目 Memory<T>Otherwise, it returns a String with the name of the type and the number of elements that the Memory<T> contains.

适用于