Add foreach support to Span<T> and ReadOnlySpan<T> (#14922)
authorStephen Toub <stoub@microsoft.com>
Thu, 9 Nov 2017 01:02:50 +0000 (20:02 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2017 01:02:50 +0000 (20:02 -0500)
commitf43e817bd348549402cf2d15ca0fceee40c4e009
tree7b2ffc7fefe44ba174867a799354ace492a9d6c0
parent0d7c960ec8d2519b0748d0bd0bdcf3d1fd9fb652
Add foreach support to Span<T> and ReadOnlySpan<T> (#14922)

Adds a ref struct Enumerator, and a corresponding GetEnumerator method to each.
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Span.cs