← Back
Nick Chapsas April 25, 2025 8m

Don't Loop the Wrong Way in .NET

Summary

The transcript discusses the technical nuances between IEnumerable and IEnumerator in C#, specifically comparing their performance and usage in iterating through collections. The speaker, Nick, breaks down the fundamental differences between these two interfaces, explaining that IEnumerable represents a collection while IEnumerator provides instructions on how to enumerate that collection. The key takeaway is that while the blog post suggested one method was faster, the actual implementation had flaws, and developers should carefully consider the context and specific implementation details when choosing between IEnumerable and IEnumerator.

View original episode ↗