Does foreach automatically call Dispose? November 29, 2022 by Tarik Yes, foreach will call Dispose() on the enumerator if it implements IDisposable.