Skip to content

Instantly share code, notes, and snippets.

@Ibro
Created May 23, 2018 06:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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