Enumerables (IEnumerable, IEnumerator) | C# Programming Tutorials Beginners: 17

preview_player
Показать описание

Part of the series of tutorials on programming C# for beginners

Understand what enumeration, enumerators and enumerable are, how we create them and when and why we use them
Рекомендации по теме
Комментарии
Автор

Really helpful in understanding what's actually going on. A lot of tutorials try to simplify things so much it actually makes it harder, or just blow over things like "that's just what you write and you get the answer" or are so technical it goes over my head. This is just right for making sense of something that keeps coming up and kept feeling intimidating.

Aeroxima
Автор

Amazing explanation that actually goes into the logic behind name and usage! There have been some changes in .Net6 and the IEnumerable @3:25 is actually wrapped by IList. You'll just have to press F12 once you click on IList and then you will find IEnumerable

anton
Автор

Thank you. It's really straight forward. For whatever reason when I just read 'IInterfacesomething' my brain already blocks because they look so scary

das_evoli
Автор

This is the best explanation out there!! This is totally a Computerphile worthy explanation!! Great job!!

RonnieBanerjee
Автор

great vid tbh would recommend to anyone who is at this stage to take 20 mins to watch this vid... I would however not mark this as Beginners. Your speed and the topic is for me beyond Beginner stage.

TheLecoste
Автор

Great video thanks - demystifying something that sounds complicated on the outside but you’ve explained in a really easy to understand way.

Hasack
Автор

Thank you for this amazing video it's better than any article I could find on the internet that explains this concept!!

GreaterOrEqual
Автор

I'm surprised about depth of explanation, very nice!

kamilmikua
Автор

Thank you for taking the time to explain this so well!

awdwadawda
Автор

I am still confused with this but I think after studying the video I will get it. Thanks for the video, very helpful

Slimboyfat
Автор

It was helpful and resourceful. Thank you for giving in such efforts to teach us willingful C# beginners. Much appreciated bro.

kopilkaiser
Автор

I appreciate the effort in your videos. There are far less informative tutorials compared to yours on other platforms which even cost money. Thank you for doing this.

kajij
Автор

I dont quite understand when you would want to use this. It just seems easier to have a List<T> and loop over it when I need to do such things. Any simple real-world example of when it's best to go for IEnumerable? Is it merely to control iterating over a list of unknown length, one at a time so you don't store the entire list in memory?

sunova_
Автор

You make the best explanation. Thanks!

muriloteixeira
Автор

Great explanation and tutorial! The second half is not as simple so I might have to rewatch, but thanks for this!

YOUTUBE_IS_WOKE
Автор

This is Marvelous Tutorial ~~very Helpful

Big Thanks From Taiwan~~~~

__whoKnows
Автор

Thanks for the tutorial, very helpful!
Just can't get over scrolling in Coding tutorials, it makes it almost impossible for me to keep track at that point.

wildKawa
Автор

Excellent Tutorial, after watching it (several times) I managed to create a similar IEnumerable for strings, and then, to prove I understood it, I created one to handle a complex Class Object named BankAccounts to it, and to my huge surprise, after a bit of to and froing with it, it actually worked after some issues converting the objects of this type being passed to the Enumeration code.

One stumbling block I hit was that I wanted to pass a LIst<BankAccount> in place of the arrays you have used, so rather than a BankAccount [ ], which it accepts, it doesn't seem to allow a List<T> object to be used internally to the IEnumerable/IEnumerate system ?? I therefore had to grab the data from my "Test" system, into a list form it's Dictionary format, and then create an array from that with .ToArray() which is a bit clunky.

Is there any way to use Lists<T> in this functionality, or are we stuck with internal arrays ?
Thanks again for teaching me me how to do this - Great stuff.

ianturner
Автор

Happy New year from Dominican republic.

Aryevang
Автор

It's nice to see that you are back!!! Happy new year Angelsix!

longuinni