Enumerables (IEnumerable, IEnumerator) | C# Programming Tutorials Beginners: 17
Vložit
- čas přidán 30. 12. 2018
- Support Me: / angelsix
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 - Zábava
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.
Thank you for taking the time to explain this so well!
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
Thank you for this amazing video it's better than any article I could find on the internet that explains this concept!!
Great video thanks - demystifying something that sounds complicated on the outside but you’ve explained in a really easy to understand way.
This is the best explanation out there!! This is totally a Computerphile worthy explanation!! Great job!!
There is a cool book about it:
C# 8.0 and .NET Core 3.0 - Modern Cross-Platform Development - Fourth Edition
The accent ruins most of it, but o well
Thank you. It's really straight forward. For whatever reason when I just read 'IInterfacesomething' my brain already blocks because they look so scary
Great tutorial! Keeping it nice and simple, good quality and explanations. Keep up the good work! Thanks for sharing this videos
It was helpful and resourceful. Thank you for giving in such efforts to teach us willingful C# beginners. Much appreciated bro.
Happy new year Luke. Man I was waiting for theCZcams notification
It's nice to see that you are back!!! Happy new year Angelsix!
Thanks. Happy new year
You make the best explanation. Thanks!
Happy new year, it's great to see you again :)
Thanks for the great explanation. Really helpful!
Thanks for this! I'm looking forward to your videos on IQueryable and LINQ
Happy New Year Luke! Amazing explanation over there.
Thank you for this clear explanation!
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.
I'm surprised about depth of explanation, very nice!
THANKS! Best explanation ever
been waiting :) welcome back , master ^^
Thanks :)
Good, Thank you for explanation. Keep going!
Thanks a lot, this is so helpful
Great explanation. Thank you!
This is amazing, thank you so much!!
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.
Long time no see :) Finally ur back. Happy new year.
Excellent tutorial. Thanks a lot. I have subscribed.
wow @ the quality. Great job!
Thank you! So helpful!
Thank you very much! This was pretty clear!
Thanks
Good explanation, good example
I am still confused with this but I think after studying the video I will get it. Thanks for the video, very helpful
Hey man. I love your content. Keep up your good work.
1 question tho. 17:00 will you keep this series going?
Very interesting .Thank you.
Awesome intro. Great info.
Hi Luke, I have a video (series?) request. Would you have any advice for those thinking of setting up a software company, getting the word out and getting those first few sales in? I think lots of us would love to do this but there is a lack of advice about the non software side. Any advice you can offer would be much appreciated.
Happy New year from Dominican republic.
Happy New Year and thanks a lot for your informative videos.
Thanks, happy new year
Hi AngelSix, thanks for creating amazing content. I would like to know whether you are going to do some videos about C# 8.0 and .NET Core 3.0? I would appreciate that so much!
Great Lesson Thank you
Thanks great! That's really good explanation!
Glad I could help
Finally ure back, Happy Year !!
I know. That was a crazy 2 months! Back at it now though, although I go CES next week so WPF video will be week after
This is Marvelous Tutorial ~~very Helpful
Big Thanks From Taiwan~~~~
I know it's kinda randomly asking but do anyone know a good website to stream new movies online ?
@Miles Parker Try Flixzone. You can find it on google :)
I love to see his face . Great Man (Respect )
You're the best!
You are the man.
SIR YOU ARE THE BEST
Yaah youre back welcome back
Finally :)
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.
Great explanation
Well done!
Thank you for this video
Great explanation.
Thanks
nice and helpful, thanks
Buena explicacion, gracias
Great explanation and tutorial! The second half is not as simple so I might have to rewatch, but thanks for this!
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 in place of the arrays you have used, so rather than a BankAccount [ ], which it accepts, it doesn't seem to allow a List 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 in this functionality, or are we stuck with internal arrays ?
Thanks again for teaching me me how to do this - Great stuff.
Happy new year Brother, thank you for very nice video.
Happy new year
I dont quite understand when you would want to use this. It just seems easier to have a List 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?
Mainly when you don't want to load a large list into memory all at once, loading over network on infinite scroll, or dynamically generated lists that can be calculated. So saves memory and speed up loading
Thank you
Hi , We are waiting for Advanced C# please ! in my opinion it's better to do a real world app and in the middle explain new things ;) thanks
Happy New Year bro..
You are awesome!
thanks
How many more parts are left? Please continue to make more, best tutorials ever on C#
I'm going to do a new C# series, much more professional, start to finish, hopefully a video every other day, once I get back into these videos shortly
Useful
Great stuff Sir thank you for the work you put in this. I have a noobish question maybe someone reading these might help. Where are the function of the IEnumerator interface for the Array for example MoveNext() implemented? IMHO it should have been implemented by the the class Array but I don't see any function called MoveNext() in the list of methods in 03:01. While I am already at it is there a way to see the internal implementations of those methods?
An array is not enumerable. It is a known size. MoveNext is there because enumerators do not necessarily know their size, or if something is next until its enumerated over. An array is fixed size so you can just loop ForEach
@@AngelSix Thank alot for answering, still I am wondering the Class Array implements the Interface IENUMERABLE and so the class array implements the function GetEnumerator which itself hast to return an Enumerator that Enumerator has to be specific for the array. I still dont get where that special ArrayEnumerator with its special functions is created. Is it done in the implementation of Getenumerator()?
I think that because the Array implements IEnumerable, it must implement a function called GetEnumerable(); It is that Enumerable class that implements the MoveNext() method.
Happy new year ^^
Happy new year
likewise
Damn, do u think its happy??😂
Thanks!
Your welcome
First of all, thank you for your greet content!!! It´s awesome. I´m a new programmer and i love your videos. Is it possible to make a video to Component Object Model?
Would be nice if you could post the source code for videos like this. Not everything, this seems a bit more theory so having source code on my own screen and studying it I think would help me learn faster.
can you make a video on Yield Return?
are all collections considered as objects in c#?
Happey new year
Lovin the hairstyle.
Did you ever create the follow up LINQ video? I can't f find it .
If it's not in playlist then no
Happy New Year~
Happy new year
Bummer the series end right at this point as I was looking specifically for something on the IQueryable interface
The new series will cover everything
is iteration equal to enumeration?
Dude that is some sick hair
Have not thought about making the server in discord?
It has done already.
It would be better if you show more code lines at the time.
Kool hair bro
When should we use IEnumerator instead of a loop?
Most likely never, it is good for understanding generic classes innerworkings
You should post this on git mate. Nonetheless. Great vid!
holly fuck that's a good cam you got there, i'd think you were the real thing if some 3d was added.
Thanks for the explanation but mIndex in the reset should be -1 not 0
No it should be 0. Current is filled out at the start. You do not call MoveNext first, you check current first
@@AngelSix In that case, 16:17 mIndex should also be initialised to 0 instead of -1? Otherwise it doesn't make sense that it is initialised with one value but reset to a different value?
You look like Jason Broody from Far Cry 3 hahaha
Dumb, perhaps very dumb question, what is te purpose of those $ on the console write lines??
dotnetfiddle.net/rcFzkg
If you’re not English: 0,75 speed
+rep for 4K
What a haircut
___ ___
? ?
(=====)
I just gave up at 14.00
Everything was simple when we use just a for loop to iterate over a collection. Now, the code looks horrible.
😂😂😂
3:04 It returns an IEnumerator
More of an intermediate explanation. As a beginner you were saying and doing things without actually explaining what you were doing.
Your hair is crazy ....
Kinda hard to follow.
beginner? :D
Check our my current series, it starts from very basics
@@AngelSix btw is it possible to use that IEnumerable.Current with just a foreloop or does it need to be constructed as in the video to be able refer to IEnumerable from other classes as well?
The accent and the speed this guy speaks, makes very troublesome to bear...sorry thumbs down
the speed is freaken perfect dude finally a youtube video that i dont have to play on 2x speed cause the teacher is so boring and slow