Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToString()

override string System.ReadOnlyMemory< T >.ToString ( )
inline

Definition at line 120 of file ReadOnlyMemory.cs.

121 {
122 if (typeof(T) == typeof(char))
123 {
124 if (!(_object is string text))
125 {
126 return Span.ToString();
127 }
128 return text.Substring(_index, _length);
129 }
130 return $"System.ReadOnlyMemory<{typeof(T).Name}>[{_length}]";
131 }
unsafe ReadOnlySpan< T > Span
readonly object _object

References System.ReadOnlyMemory< T >._index, System.ReadOnlyMemory< T >._length, System.ReadOnlyMemory< T >._object, System.text, and System.Span< T >.ToString().