SpanDeconstructors is a source package which allows you to use C# 7 deconstruction syntax to deconstruct span into variables:
Span<int> span = <...>;
var (a,b,_) = span;
- The decision has been made such that there are no safety checks on the deconstruction methods.
You can install from NuGet using following command:
> Install-Package SpanDeconstructors.Source