Тёмный

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

AngelSix
Подписаться 61 тыс.
Просмотров 109 тыс.
50% 1

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

Развлечения

Опубликовано:

 

30 дек 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 139   
@Aeroxima
@Aeroxima Год назад
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.
@anton9410
@anton9410 Год назад
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
@awdwadawda352
@awdwadawda352 16 дней назад
Thank you for taking the time to explain this so well!
@electroqt1671
@electroqt1671 2 года назад
Thank you for this amazing video it's better than any article I could find on the internet that explains this concept!!
@Hasack
@Hasack Год назад
Great video thanks - demystifying something that sounds complicated on the outside but you’ve explained in a really easy to understand way.
@RonnieBanerjee007
@RonnieBanerjee007 3 года назад
This is the best explanation out there!! This is totally a Computerphile worthy explanation!! Great job!!
@DiscipleW
@DiscipleW 2 года назад
There is a cool book about it: C# 8.0 and .NET Core 3.0 - Modern Cross-Platform Development - Fourth Edition
@thomasjust2663
@thomasjust2663 2 года назад
The accent ruins most of it, but o well
@longuinni
@longuinni 5 лет назад
It's nice to see that you are back!!! Happy new year Angelsix!
@AngelSix
@AngelSix 5 лет назад
Thanks. Happy new year
@das_evoli
@das_evoli 2 года назад
Thank you. It's really straight forward. For whatever reason when I just read 'IInterfacesomething' my brain already blocks because they look so scary
@TheMohsell
@TheMohsell 5 лет назад
Happy new year Luke. Man I was waiting for theRU-vid notification
@juanjosesantos7757
@juanjosesantos7757 5 лет назад
Great tutorial! Keeping it nice and simple, good quality and explanations. Keep up the good work! Thanks for sharing this videos
@muriloteixeira5541
@muriloteixeira5541 3 года назад
You make the best explanation. Thanks!
@williamgao3682
@williamgao3682 5 лет назад
Happy new year, it's great to see you again :)
@aduseijeffery7876
@aduseijeffery7876 5 лет назад
Happy New Year Luke! Amazing explanation over there.
@705am
@705am 5 лет назад
been waiting :) welcome back , master ^^
@AngelSix
@AngelSix 5 лет назад
Thanks :)
@raymondvanhoorn
@raymondvanhoorn 2 года назад
Thank you for this clear explanation!
@RealMitl
@RealMitl Год назад
Thanks for the great explanation. Really helpful!
@skatevolcom433
@skatevolcom433 5 лет назад
Thanks for this! I'm looking forward to your videos on IQueryable and LINQ
@kentswan3230
@kentswan3230 3 года назад
THANKS! Best explanation ever
@kopilkaiser8991
@kopilkaiser8991 Год назад
It was helpful and resourceful. Thank you for giving in such efforts to teach us willingful C# beginners. Much appreciated bro.
@nurbolyskakov6590
@nurbolyskakov6590 4 года назад
Good, Thank you for explanation. Keep going!
@kingcarmichael
@kingcarmichael 3 года назад
Great explanation. Thank you!
@kamilmikua5794
@kamilmikua5794 Год назад
I'm surprised about depth of explanation, very nice!
@ganim949
@ganim949 3 года назад
Thanks a lot, this is so helpful
@kajij
@kajij 5 лет назад
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.
@attilavarkonyi7066
@attilavarkonyi7066 4 года назад
Thank you very much! This was pretty clear!
@AngelSix
@AngelSix 4 года назад
Thanks
@persoulrpg
@persoulrpg 5 лет назад
Long time no see :) Finally ur back. Happy new year.
@jonskislo1
@jonskislo1 3 года назад
wow @ the quality. Great job!
@RioTheHitman
@RioTheHitman 5 лет назад
Yaah youre back welcome back
@AngelSix
@AngelSix 5 лет назад
Finally :)
@hutchm92
@hutchm92 5 месяцев назад
Thank you! So helpful!
@kellybmackenzie
@kellybmackenzie Год назад
This is amazing, thank you so much!!
@imadabab
@imadabab 3 года назад
Excellent tutorial. Thanks a lot. I have subscribed.
@AbdullahKhan-dl9lm
@AbdullahKhan-dl9lm 2 года назад
Good explanation, good example
@imAskja
@imAskja 6 месяцев назад
Awesome intro. Great info.
@srinivasaraoyp3640
@srinivasaraoyp3640 4 года назад
Very interesting .Thank you.
@__whoKnows
@__whoKnows 4 года назад
This is Marvelous Tutorial ~~very Helpful Big Thanks From Taiwan~~~~
@milesparker5432
@milesparker5432 3 года назад
I know it's kinda randomly asking but do anyone know a good website to stream new movies online ?
@ishaancurtis620
@ishaancurtis620 3 года назад
@Miles Parker Try Flixzone. You can find it on google :)
@chamir4614
@chamir4614 5 лет назад
Finally ure back, Happy Year !!
@AngelSix
@AngelSix 5 лет назад
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
@dpetrik99
@dpetrik99 4 года назад
Thanks great! That's really good explanation!
@AngelSix
@AngelSix 4 года назад
Glad I could help
@user-ql2zw3bg1l
@user-ql2zw3bg1l 2 года назад
Great Lesson Thank you
@TheLecoste
@TheLecoste Год назад
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.
@his-worddevotionals540
@his-worddevotionals540 3 года назад
You are the man.
@shadowthejudgehog9081
@shadowthejudgehog9081 Год назад
SIR YOU ARE THE BEST
@tomasmichael3576
@tomasmichael3576 2 года назад
You're the best!
@TAURENIO
@TAURENIO 5 лет назад
Happy New year from Dominican republic.
@EjMacarus
@EjMacarus 3 года назад
Well done!
@patrikbak8161
@patrikbak8161 5 лет назад
Great explanation.
@AngelSix
@AngelSix 5 лет назад
Thanks
@icn2083
@icn2083 5 лет назад
Happy New Year and thanks a lot for your informative videos.
@AngelSix
@AngelSix 5 лет назад
Thanks, happy new year
@kerandonovan7255
@kerandonovan7255 3 года назад
Great explanation
@Slimboyfat1979
@Slimboyfat1979 2 года назад
I am still confused with this but I think after studying the video I will get it. Thanks for the video, very helpful
@mohammadAnwer786
@mohammadAnwer786 5 лет назад
I love to see his face . Great Man (Respect )
@abdelkiki
@abdelkiki 3 года назад
Thank you for this video
@FilipMarzec_
@FilipMarzec_ 4 года назад
nice and helpful, thanks
@nahuelherrera7301
@nahuelherrera7301 3 года назад
Buena explicacion, gracias
@VinuP2023
@VinuP2023 5 лет назад
Happy new year Brother, thank you for very nice video.
@AngelSix
@AngelSix 5 лет назад
Happy new year
@mustafaazyoksul1372
@mustafaazyoksul1372 4 года назад
Hey man. I love your content. Keep up your good work. 1 question tho. 17:00 will you keep this series going?
@TheMichuny25
@TheMichuny25 5 лет назад
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!
@Giannis_Krimitzas
@Giannis_Krimitzas 3 года назад
Thank you
@bastedboyderzthine
@bastedboyderzthine 5 лет назад
Happy New Year bro..
@STUPIDYOUTUBE_AI
@STUPIDYOUTUBE_AI 2 года назад
Great explanation and tutorial! The second half is not as simple so I might have to rewatch, but thanks for this!
@noahb5019
@noahb5019 4 года назад
You are awesome!
@AngelSix
@AngelSix 4 года назад
thanks
@sebastiankumlin9542
@sebastiankumlin9542 4 года назад
Useful
@turn1210
@turn1210 5 лет назад
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.
@wildKawa
@wildKawa Год назад
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.
@TheAlphaGeko
@TheAlphaGeko 5 лет назад
Happy new year ^^
@AngelSix
@AngelSix 5 лет назад
Happy new year
@LawnMeower
@LawnMeower 4 года назад
likewise
@theLegendPiyush
@theLegendPiyush 3 года назад
Damn, do u think its happy??😂
@Nazir5593
@Nazir5593 5 лет назад
How many more parts are left? Please continue to make more, best tutorials ever on C#
@AngelSix
@AngelSix 5 лет назад
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
@ianturner2229
@ianturner2229 3 года назад
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.
@assa716
@assa716 4 года назад
Thanks!
@AngelSix
@AngelSix 4 года назад
Your welcome
@sunova_
@sunova_ Год назад
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?
@AngelSix
@AngelSix Год назад
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
@lolicon1416
@lolicon1416 5 лет назад
Happy New Year~
@AngelSix
@AngelSix 5 лет назад
Happy new year
@essaidbn1415
@essaidbn1415 5 лет назад
Happey new year
@chiefxtrc
@chiefxtrc 4 года назад
Bummer the series end right at this point as I was looking specifically for something on the IQueryable interface
@AngelSix
@AngelSix 4 года назад
The new series will cover everything
@leonvieira3877
@leonvieira3877 3 года назад
Lovin the hairstyle.
@ShayanFiroozi1
@ShayanFiroozi1 4 года назад
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
@Layarion
@Layarion 5 лет назад
can you make a video on Yield Return?
@arrogantermistkerl4579
@arrogantermistkerl4579 4 года назад
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?
@AngelSix
@AngelSix 4 года назад
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
@arrogantermistkerl4579
@arrogantermistkerl4579 4 года назад
@@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()?
@AztecPyramid
@AztecPyramid 9 месяцев назад
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.
@OT-tn7ci
@OT-tn7ci Год назад
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.
@Xt3rmn
@Xt3rmn Год назад
Kool hair bro
@skkat7336
@skkat7336 2 года назад
Dude that is some sick hair
@tracetv8115
@tracetv8115 5 лет назад
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?
@mackopop1371
@mackopop1371 5 лет назад
It would be better if you show more code lines at the time.
@zerosandones7547
@zerosandones7547 3 года назад
are all collections considered as objects in c#?
@lukegraf9365
@lukegraf9365 4 года назад
You should post this on git mate. Nonetheless. Great vid!
@DoomCatcher
@DoomCatcher 2 года назад
Did you ever create the follow up LINQ video? I can't f find it .
@AngelSix
@AngelSix 2 года назад
If it's not in playlist then no
@zerosandones7547
@zerosandones7547 3 года назад
is iteration equal to enumeration?
@tehfot
@tehfot 3 года назад
When should we use IEnumerator instead of a loop?
@lordmorgoth7
@lordmorgoth7 3 года назад
Most likely never, it is good for understanding generic classes innerworkings
@aminabouhamra5359
@aminabouhamra5359 4 года назад
Thanks for the explanation but mIndex in the reset should be -1 not 0
@AngelSix
@AngelSix 4 года назад
No it should be 0. Current is filled out at the start. You do not call MoveNext first, you check current first
@conaxlearn8566
@conaxlearn8566 4 года назад
@@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?
@chamir4614
@chamir4614 5 лет назад
Have not thought about making the server in discord?
@semen083
@semen083 5 лет назад
It has done already.
@furqanmalik2410
@furqanmalik2410 3 года назад
You look like Jason Broody from Far Cry 3 hahaha
@patrickwildschut5750
@patrickwildschut5750 5 лет назад
If you’re not English: 0,75 speed
@Layarion
@Layarion 5 лет назад
holly fuck that's a good cam you got there, i'd think you were the real thing if some 3d was added.
@stewiegriffin6503
@stewiegriffin6503 Год назад
I just gave up at 14.00
@kcvinu
@kcvinu 3 года назад
Everything was simple when we use just a for loop to iterate over a collection. Now, the code looks horrible.
@nkazimulojudgement3583
@nkazimulojudgement3583 3 года назад
😂😂😂
@victorvoiz8839
@victorvoiz8839 3 года назад
+rep for 4K
@sebastiankumlin9542
@sebastiankumlin9542 4 года назад
3:04 It returns an IEnumerator
@ravanin
@ravanin 5 лет назад
Dumb, perhaps very dumb question, what is te purpose of those $ on the console write lines??
@patrikbak8161
@patrikbak8161 5 лет назад
dotnetfiddle.net/rcFzkg
@AG45.
@AG45. 4 года назад
What a haircut ___ ___ ? ? (=====)
@user-ii4td6qt8d
@user-ii4td6qt8d 2 месяца назад
More of an intermediate explanation. As a beginner you were saying and doing things without actually explaining what you were doing.
@justingiovanetti
@justingiovanetti 4 месяца назад
Kinda hard to follow.
@programmingtacticalcode7968
@programmingtacticalcode7968 3 года назад
Your hair is crazy ....
@MorgurEdits
@MorgurEdits 4 года назад
beginner? :D
@AngelSix
@AngelSix 4 года назад
Check our my current series, it starts from very basics
@MorgurEdits
@MorgurEdits 4 года назад
@@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?
@thomasjust2663
@thomasjust2663 2 года назад
The accent and the speed this guy speaks, makes very troublesome to bear...sorry thumbs down
@AhmedElsayed-ur1iy
@AhmedElsayed-ur1iy 2 года назад
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
Далее
C# Yield Return: What is it and how does it work?
15:09
Interfaces | C# Programming Tutorials Beginners: 15
34:38
Gale Now VS Then Edit🥵 #brawlstars #shorts
00:15
Просмотров 206 тыс.
C# IEnumerable & IEnumerator
25:15
Просмотров 34 тыс.
When to use - IEnumerable vs IList vs ICollection?
12:05
C# generics ⁉️
5:33
Просмотров 69 тыс.
IEnumerable 🆚 IEnumerator Interfaces in C#
34:06
Просмотров 27 тыс.
What are Generics? (C# Basics)
13:48
Просмотров 142 тыс.
Beginner CRASH COURSE for IEnumerable in .NET C#
14:13
Every single feature of C# in 10 minutes
9:50
Просмотров 96 тыс.
ЭКСПРЕСС разбор стиралки
0:39