Does foreach automatically call Dispose? March 27, 2023 by Tarik Yes, foreach will call Dispose() on the enumerator if it implements IDisposable.