3 ms·
I've always wanted something similar in C#. By convention, byte arrays are used for handling arbitrary blobs; but they are mutable and don't have the same kind
by gwbas1c 4y ago
I've always wanted something similar in C#. By convention, byte arrays are used for handling arbitrary blobs; but they are mutable and don't have the same kind of support that strings have. C# strings are immutable and have lots of supporting methods.
- rednab 4y agoThese days C# has Span<byte> ¹) and ReadOnlySpan<byte> ²) which has a whole bunch of string-like methods, but the version of C# it requires might be newer than you're happy with. ¹) https://docs.microsoft.com/en-us/dotnet/api/system.span-1 https://docs.microsoft.com/en-us/dotnet/api/system.span-1 ²) https://docs.microsoft.com/en-us/dotnet/api/system.readonlyspan-1 https://docs.microsoft.com/en-us/dotnet/api/system.readonlys...
- gwbas1c 4y ago> but the version of C# it requires might be newer than you're happy with Oh, that's a solvable problem. Thanks!