Closed Emik03 closed 5 months ago
0.6.5
A non-default Memory<T> doesn't produce the correct output on detailed mode.
Memory<T>
Displays .ToString() properly, such as...
.ToString()
> "foobar".AsMemory()[3..] "bar" └── 🟡 Length: 3
> "foobar".AsMemory()[3..] !<Member 'ToString(),raw' not found> ├── 🟡 IsFixedSize: true ├── 🟡 IsReadOnly: false ├── 🟡 IsSynchronized: false ├── 🟡 Length: 3 ├── 🟡 LongLength: 3 ├── 🟡 Rank: 1 └── 🟡 SyncRoot: char[3] ┌──────┬───────┬──────┐ │ Name │ Value │ Type │ ├──────┼───────┼──────┤ │ [0] │ 'b' │ char │ │ [1] │ 'a' │ char │ │ [2] │ 'r' │ char │ └──────┴───────┴──────┘ >
Adding a .ToString() or .ToArray() solves this issue.
.ToArray()
> "foobar".AsMemory()[3..].ToString() bar └── 🟡 Length: 3
Version
0.6.5
What happened?
A non-default
Memory<T>
doesn't produce the correct output on detailed mode.Expected
Displays
.ToString()
properly, such as...Actual
Workaround
Adding a
.ToString()
or.ToArray()
solves this issue.