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> String ,方法返回一个Memory<T>,该字符串包含由指向的字符。 ToStringFor 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.

适用于