Skip to content

Instantly share code, notes, and snippets.

@Ibro Ibro/Span.cs
Created May 23, 2018

Embed
What would you like to do?
More C# 7 goodness - Span<T> - Span of T - CodingBlast
int[] arr = { 0, 1, 2, 3, 4, 5 };
Span<int> span = arr.AsSpan();
foreach (var number in span)
{
Console.WriteLine(number);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.