Interaction of 'first class spans' with inline array types/Extension methods over inline array types
Given several inline array types of
would it be possible, with the upcoming 'first class spans' (https://github.com/dotnet/csharplang/issues/8714), to write an extension method over
and then have that extension appear over all inline array types of
or is that not covered by that proposal? If not, can this (defining a single extension method for any inline array of a given primitive) be achieved in some other way?
byte of various lengths used to model certain fixed size buffers:would it be possible, with the upcoming 'first class spans' (https://github.com/dotnet/csharplang/issues/8714), to write an extension method over
Span<byte> like such:and then have that extension appear over all inline array types of
byte as such:or is that not covered by that proposal? If not, can this (defining a single extension method for any inline array of a given primitive) be achieved in some other way?