Strona głównaSztuka programowania

Home » Foreach, IEnumerable and IEnumerator in C#Programming Today, we’re taking a deeper look at foreach loop in C#. What does a collection need to be able to use it in a foreach loop? Does it have to implement IEnumerable interface? These questions are often asked during interviews, so it’s worth knowing the answers 😃 We will go through a step-by-step example in building our own custom collection to see how all that works. Let’s dive in! 😎 Throughout this article, I’m working with a Unit Tests pro...

Tagi: .Net, C#, csharp, dotnet
Źródło: blog.yumasoft.pl
Dziel się z innymi:
Foreach, IEnumerable and IEnumerator in C# - Yumasoft

Sztuka programowania 1171 dni, 2 godziny, 44 minuty temu dsibinski 118 pokaż kod licznika zwiń

Wczytywanie artykułów...