Does “foreach” in C# call “Dispose” on an “IDisposable” object? “foreach” operator in C# calls “Dispose” on the collection/stream it iterates over Click here to read the article