Тёмный

c# (Csharp) and .NET :- Difference between IEnumerable and IEnumerator. 

.NET Interview Preparation videos
Подписаться 159 тыс.
Просмотров 494 тыс.
50% 1

For more such videos visit www.questpond.com
For more such videos subscribe ru-vid.com...
See our other Step by Step video series below :-
Learn C# Step by Step goo.gl/FNlqn3
Learn Design Pattern Step by Step:- goo.gl/eJdn0m
Learn Angular tutorial step by step tinyurl.com/ycd9j895
Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
Learn Azure Step by Step :- tinyurl.com/y6fmrech
Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
Python Tutorial for Beginners:- • Python Tutorial for Be...
Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
Learn Power BI Step by Step:- tinyurl.com/y6thhkxw
Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
Learn SQL Server Step by Step tinyurl.com/ja4zmwu
Learn Tableau step by step :- tinyurl.com/kh6ojyo
In this c# video video we will try to understand in what scenarios we should use IEnumerable and what scenarios we should use IEnumerator.
We are also distributing a 100 page Ebook ".NET Interview Questions ". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on questpond@questpond.com with the shared link and we will email you the PDF.

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

 

30 мар 2012

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 253   
@dnfvideo
@dnfvideo 2 года назад
Do not miss our Interview Question video series 30 Important C# Interview Questions : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BKynEBPqiIM.html 25 Important ASP.NET Interview Questions : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pXmMdmJUC0g.html 25 Angular Interview Questions : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--jeoyDJDsSM.html 5 MSBI Interview Questions : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5E815aXAwYQ.html
@ZhuShisubi
@ZhuShisubi 10 лет назад
This question has been going around for years and finally someone who just answered it in a very in-depth yet simple way. Thanks from Master Zhu! :)
@rajkumararora7366
@rajkumararora7366 2 года назад
Very well explained in simplistic words. This truely signifies the role of a good teacher. Shiv sir you are the best !!! Keep it up...
@muslimresearcher6062
@muslimresearcher6062 5 лет назад
I think the more accurate syntax for the difference between IEnumerable and IEnumerator is that: it is not the IEnumerable or IEnumerator maintains the state or not, but the technique of iteration through IEnumerable or IEnumerator rests the position or not. As you loop through IEnumerable with foreach loop, the foreach loop automatically resets the IEnumerable position to the initial position each time you iterate. While as you iterate through IEnumerator with MoveNext() method the position is maintained with the new iteration loop, because nothing automatically changes the position of IEnumerator and if you want the initial position of IEnumerator you must use Reset() method. So, the technique used to iterate through IEnumerable rests the position automatically each time you iterate, while The technique used to iterate through IEnumerator begins the iteration from the last IEnumerator position and no automatic reset is carried out in IEnumerator iteration.
@shiftstudiong
@shiftstudiong 3 года назад
thank you for this concept.
@ssushovan
@ssushovan 7 лет назад
You are a life saver. Finally, I get the difference between these two now.
@khurramsultan2040
@khurramsultan2040 6 лет назад
i dont know why some stupid people are disliking these videos. this guy has great way of teaching and he is doing it for free and on the other hand he is very well experienced and sharing his experience
@jimmynguyen7961
@jimmynguyen7961 6 лет назад
Love these videos. Very comprehensive explanations.
@kingwoodbudo
@kingwoodbudo 5 лет назад
Thanks for making this much clearer. I appreciate your time.
@kopilkaiser8991
@kopilkaiser8991 Год назад
I had these exact questions and you have answered really well with simple and clear explanation. Thank you!
@nikolaypanchev
@nikolaypanchev 9 лет назад
Simple and clear explained. Thank You!
@yaarkhakf
@yaarkhakf 9 лет назад
now i can die in peace
@phre3k187
@phre3k187 7 лет назад
RIP in peace.
@priyankabiswal8394
@priyankabiswal8394 6 лет назад
:D
@jasonmiller1347
@jasonmiller1347 6 лет назад
This made me laugh so hard. But its so true. Programming can get so confusing at times
@MicroftHunter
@MicroftHunter 6 лет назад
LOL :D
@sabinshrestha8176
@sabinshrestha8176 5 лет назад
:p
@tthamil
@tthamil 9 лет назад
I was very confused between IEnumerable and IEnumerator before the video, I had a very clear explanations from your videos in depth.Thank You.
@zuzuba3481
@zuzuba3481 4 года назад
Well done. No words to appreciate. Long time confusion is cleared..
@kvguitarist
@kvguitarist 10 лет назад
Great video... Would just like to point out one thing... Maybe no one noticed it but at 12:25, you say "The Biggest difference between IEnumerable and IEnumerator is that IEnumerable REMEMBERS STATES while IEnumerable DOES NOT." I think you wanted to say "IEnumerator remembers states while IEnumerable does not" Obviously that was an accident. But just wanted to point out. Thank you so much for the help!
@mrsoo9687
@mrsoo9687 7 лет назад
i love your explanation! thank you so much! you saved me!
@kvguitarist
@kvguitarist 10 лет назад
Also at 10: 16 we should pass int i in the IEnumerable example to 2nd function Iterate2001andAbove() instead of passing o (which is the full list). This will fix listing the years multiple times... :-) Hope that helps.. Thank you once again!
@MsRohit35
@MsRohit35 4 года назад
Was going to comment the same
@henryv4222
@henryv4222 7 лет назад
good entertaining explanations- I use it for looping through controls in forms apps but I didn't know what differences between the two were
@rajendraprasad8814
@rajendraprasad8814 12 лет назад
The video was awesome...i was finding it difficult to understand the difference from many sites, this video was crisp and clear...kudos
@idlevandal69
@idlevandal69 6 лет назад
Clear and concise explanation.. Awesome..
@AhmadElkhouly
@AhmadElkhouly 3 месяца назад
Thank you. In short, IEnumerable is the collection itself that can be iterated. IEnumerator is an enumerator object that's used to iterate through a collection of data. So for a collection to be enumerable it must provide an enumerator object. IEnumerable exposes the GetEnumerator method that provides that enumerator.
@mrk10000
@mrk10000 4 года назад
You always give excellent examples and analogy, thanks a lot for sharing
@aske1602
@aske1602 10 лет назад
Thanks I have been looking for a decent explanation of the difference between the two collections.
@vinaykrishnasharma5024
@vinaykrishnasharma5024 8 лет назад
Cleared a very important concept. Thanks a lot.
@vexedev
@vexedev 11 лет назад
Maaaaan, THIS IS A TUTORIAL!!! Amaaaxxxxing :D
@sushmabaijv4158
@sushmabaijv4158 10 лет назад
Thank you very much now I got very clear idea about these two interfaces thanks once again
@LOGIGON
@LOGIGON 10 лет назад
Thanks, you made the Difference clear!
@ronaldabellano5643
@ronaldabellano5643 5 лет назад
Thank you! That’s a valuable information.
@eladyehuda8827
@eladyehuda8827 2 года назад
You are a true professional and an excellent explanation
@rajkumarg5028
@rajkumarg5028 5 лет назад
Great explanation ...u reduced my stresssss..
@factworld4375
@factworld4375 5 лет назад
Thanks sir ji. Loved the way u have explained it.
@phongchau1013
@phongchau1013 8 лет назад
Excellent explanation of the difference between the two. Thanks.
@sdss315
@sdss315 12 лет назад
This is nice, I learned it, Thank you sir !
@sebastiankumlin9542
@sebastiankumlin9542 5 лет назад
Better than most other explanations!
@Benjam901
@Benjam901 10 лет назад
You cleared up a lot for me, thank you
@SushrutKanetkar
@SushrutKanetkar 7 лет назад
Thanks ! Very clear explanation.
@tchipilev9
@tchipilev9 7 лет назад
Very good explanation. Thank you dude !
@jamesjackson414
@jamesjackson414 10 лет назад
Very good video. As always, well explained, easy to follow code and example. Thanks for sharing with the world.
@iwo3324
@iwo3324 7 лет назад
Very good explaination, thank you ! Now I understand :D
@thegr8raj1
@thegr8raj1 6 лет назад
Very nice explanation. Thanks for the video.
@thisisnehlem
@thisisnehlem 3 года назад
Thank your clear explation sir thumbs up from PH🇵🇭
@bbabak2
@bbabak2 4 года назад
Perfect explanation. Thank you
@jitendravirkayade3466
@jitendravirkayade3466 7 лет назад
it really help me to understand basic difference, Thanks,
@salimshaiks
@salimshaiks 9 лет назад
Really helpful video....Thanks a ton.
@P0mpal0
@P0mpal0 6 лет назад
!Very clear explanation, thanks
@BrunoDemolishment
@BrunoDemolishment 12 лет назад
Wow, very good! Would you do a video on the ICollection interface, the IList interface and the IDictionary interface? You explaine very well peace
@kris4117
@kris4117 2 года назад
Now that I understood what I need to.... I am all set for Nirvana - Guru ji with your blessings.
@sadaqat4728
@sadaqat4728 3 года назад
great work man. hardworking and talented people like you deserve subscribers and appreciation rather than those loser tiktokers.
@Kaboomnz
@Kaboomnz 10 лет назад
thankyou sir, nicely demonstrated :)
@VijayKumar-fs1mm
@VijayKumar-fs1mm 9 лет назад
Very good explanation, Thank you.....
@saranjeetkaur5184
@saranjeetkaur5184 6 лет назад
Thanks a lot Sir for explaining very well.
@Mckandy47
@Mckandy47 6 лет назад
Thalaivaaa. You are great !!!
@dnfvideo
@dnfvideo 12 лет назад
Its already uploaded. we would like to clarify to everyone here what videos we upload on youtube are a very very small part what we have on questpondvd.
@HammadKhanYT
@HammadKhanYT 3 года назад
There is a bug in this code though not obvious in the tutorial. @8:43 In the first function Upto2000, it checks for value weather greater than 200 and then jumps to the second function. But when it jump into the second function o.MoveNext is called and then it print the NEXT value not the current value. So the program is flawed in a sense that the condition check on a value, jump to the second function and then does not uses that value but pull in the next value. It will be more obvious if lets say after 2002, there is a value 1999, it will print in correct value.
@ashamp1028
@ashamp1028 11 лет назад
Very nice and clear explanation... Thanks a lot
@aspnet4456
@aspnet4456 6 лет назад
Good explanation. Thanks!!!
@sahilchugh6482
@sahilchugh6482 6 лет назад
u r superb sir.. Keep helping us
@dilshadansari8397
@dilshadansari8397 9 лет назад
Great Example..thanks alot..
@Archak77
@Archak77 Год назад
Excellent explanation sir ...Thank you 🙏
@cesarsc971
@cesarsc971 11 лет назад
Amazing example. Thanks
@lifeinanutshell28
@lifeinanutshell28 4 года назад
i love your explanation! thank you so much! you saved me too ... :)
@Bigblue_YT
@Bigblue_YT 11 лет назад
Tanks for this show. I learned a lot with video.
@seanshimon
@seanshimon 9 лет назад
That example very good. Thanks.
@tornadoofthoughts
@tornadoofthoughts 6 лет назад
Great explanation!
@sarathbaiju6040
@sarathbaiju6040 3 года назад
Thank you for this very clear explanation
@joro353
@joro353 6 лет назад
Great video and thanks a lot!
@highlightspoint6182
@highlightspoint6182 8 лет назад
excellent lecture clear view
@manjeetnandal1
@manjeetnandal1 5 лет назад
Great sharing...
@gen_jain
@gen_jain 2 года назад
Wow Sir Awesome ! Nicely explained loved it 😊😊
@charlliemurphy8381
@charlliemurphy8381 4 года назад
Very good explanation, thank you.
@mahalakshmip9618
@mahalakshmip9618 5 лет назад
Very good Explanation for Enumerator and Enumerable
@InshuMussu
@InshuMussu 8 лет назад
your second example made me clear
@sravankumar131
@sravankumar131 5 лет назад
Nice explanation...Thanks alot sir...
@achilleskocaeli
@achilleskocaeli 12 лет назад
man you are really good...
@beydoin
@beydoin 11 лет назад
Amazing! Thanks.
@rajeevjha3714
@rajeevjha3714 5 лет назад
Nicely explained.
@fastdrive55
@fastdrive55 11 лет назад
Great tutorial.
@ashamp1028
@ashamp1028 10 лет назад
Nicely explained... :)
@rajasekharjangam4999
@rajasekharjangam4999 3 года назад
Super explanation bro..
@venkatasaisrikarganugapati7567
Decent Explanation.
@arun020391
@arun020391 5 лет назад
If foreach is the case and we're not interested in current position then why should we choose IEnumerable too instead of we might have use object of List in foreach right and why we go for IEnumerable? can you please anyone clear my doubt, Thank you.
@fcdario2763
@fcdario2763 6 лет назад
Thank you very much!
@Nicetrycutiepie
@Nicetrycutiepie 3 года назад
Best example I have seen,it's registered in my mind.
@maximus392
@maximus392 9 лет назад
neat and good example
@hemlatagehlot2717
@hemlatagehlot2717 7 лет назад
Nice video..thanks!
@sankar6409
@sankar6409 9 лет назад
Great Good! explanations Thank you
@CRBarchager
@CRBarchager 9 лет назад
This cleared things up for me. Thank you very much!
@GajendraPawarChhindwara
@GajendraPawarChhindwara 11 лет назад
Nice one ....
@jackle9125
@jackle9125 6 лет назад
short and sweet :) tks
@MrNoomiali
@MrNoomiali 10 лет назад
good one
@abhinandan4444
@abhinandan4444 4 года назад
Thanks for the explanation however, IEnumerator seems similar to Yield since both maintain state iteration state. What could be the possible difference between them and in what scenarios we should specifically use them? Thanks in advance
@paulvincent9473
@paulvincent9473 2 года назад
Very good explanation
@SomethingWOW0
@SomethingWOW0 11 месяцев назад
this video explanation was boom boom bummer. Not a short and sweet. I am going to sleep, see you tomorrow .
@ajayjagdale2010
@ajayjagdale2010 7 лет назад
Very good explaination
@ISHANICUTIEPIE
@ISHANICUTIEPIE Год назад
Superb explanation
@nishatmazhar7127
@nishatmazhar7127 9 лет назад
Good job!
@takeshiscastlelovers4524
@takeshiscastlelovers4524 2 года назад
Thanks a lots keep posting for us please 🙏👍 ☺️
@Nashfanfl13
@Nashfanfl13 9 лет назад
Well you got yourself a subscriber your video was very informational and much appreciated :P
@jz1838
@jz1838 9 лет назад
good video. Thanks
@deepakbhola9050
@deepakbhola9050 11 лет назад
nice exemple.thanks
@brynarn
@brynarn 4 года назад
Love your videos
Далее
c# (Csharp):- What is the use of Yield keyword in c# ?
10:35
When to use - IEnumerable vs IList vs ICollection?
12:05
C# Delegates explained
8:47
Просмотров 513 тыс.
How IEnumerable can kill your performance in C#
11:02
Просмотров 113 тыс.
IEnumerable 🆚 IEnumerator Interfaces in C#
34:06
Просмотров 27 тыс.
Post vs Put
23:43
Просмотров 93 тыс.
C# Out parameters Vs REF parameters
6:43
Просмотров 279 тыс.