# List iteration using span

```c#
var list = new List<int>();
foreach(var item in CollectionsMarshal.AsSpan(list))
{
  
}
```

Only usable if the collection is not changed during iteration (read only)<iframe allowfullscreen="allowfullscreen" height="314" src="https://www.youtube.com/embed/jUZ3VKFyB-A" width="560"></iframe>