Memory<T>.ToString Memory<T>.ToString Memory<T>.ToString Memory<T>.ToString Method

定义

返回此 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

返回

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

注解

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

适用于