“Courage is very important. Like a muscle, it is strengthened by use.”
– Ruth Gordon

  • Current Deals
  • New Website
  • Web Maintenance
  • Technical Help
  • Contact Me
  • Client Portal
  • Home
  • Web News»
  • Does "foreach" in C# call "Dispose" on an "IDisposable" object?»

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

Published September 27, 2022By gbrewer
Categorized as Web News Tagged Code Project
© 2026 Hometown Computer Services
Site Powered By WordPress