Span<byte> MySpan = stackalloc byte[] { 12, 21, 32 };
MessageBox.Show(Convert.ToBase64String(MySpan.ToArray()));
This block of code is the method I tried with success, but ToArray allocates memory, for this I want to find a way to be able to convert the Span of Bytes into a Convertable base64 or atleast ToList since has a more flexible constraint. Is there any way to do this? Without the use of the ToArray method, I'm very new to Span by the way Thank you in advance.