Küçük C# IEnumerator Kullanımı Hakkında Gerçekler Bilinen.
foreach : is a C# construct/facade in a sense in that you don't need to know how it works under the hood. It internally gets the iterator and calls the right methods for you to concentrate on what you want to do with each item (the contents of the foreach block).Understanding the intricacies of IEnumerable and IEnumerator is fundamental for any C#