Home
Options

How do I view a Span<Byte> in the Debugger?

edited May 30

I'm porting some C code over to C# and making use of Span<Byte> and ReadOnlySpan<Byte>, but Linqpad 's debugger doesn't show me the contents of the span:

See the Locals tab, and see how the expanded Results View is empty, despite the Span<Byte> bytes being backed by a normal Byte[].

Comments

Sign In or Register to comment.