Why .NET Standard 2.0 has full support for Span even if MS lists it as unsupported?

Viewed 38

I started digging around about spans, and I have found official reference information that it is supported as System.Span<T> since .NET Standard 2.1 here. However, I have Xamarin Application with .NET Standard 2.0 and C# 7.3, where I can use System.Span without issues, I can even use Reverse() which I have seen discussions dealing with lack of it in Standard 2.0.

I am so confused about that, can anyone explain why I can use it, where it shouldn't work?

1 Answers

Span<T> as part of System.Runtime.dll is not available in .NET Standard 2.0.

There's a NuGet package (System.Memory), but that provides only those types and not the changes to the BCL to use Span<T>.

Related