I'm not a fan of this explanation. At 1:29, the reason you can still use your foreach loop on your list even though you haven't explicitly called IEnumerator is because List inherit from IEnumerable. You can see that if you just "right click" and peek definition on List
There might a scenario where we going to implement this pattern to some cases it would be in iterator pattern and in some cases it will be used in a singleton design pattern as well...coz in singleton it acts wrapper + iterator
Hi Questpond, Sir Please clear this doubt I have done same things what you have done in your code but I Didn't use IEnumerable but still there is no error and I am getting desired output. Then Why to use IEnumerable. Please have a Look at these piece of lines. using System; using System.Collections; using System.Collections.Generic; namespace HelloWorld { class Program { static void Main(string[] args) { foreach(var temp in get()){ Console.WriteLine(temp); } }
static dynamic get(){ int a=1; var arlist1 = new ArrayList(); arlist1.Add(1); arlist1.Add("Bill"); arlist1.Add(" "); arlist1.Add(true); if(a>1) return "good"; else return arlist1; } } } and getting output : 1 Bill
Async methods are intended to be non-blocking operations, it doesn't create new thread whereas Thread creates new thread and runs at the same time (concurrently) on different CPU core on the system.
@Carmel raj is right. If you want understand that sentence practically check this video , its one of our best creations ruclips.net/video/G3tz9rxts8E/видео.html
FirstorDefault() => handles the null values from the results in a list First() => doesn't handle the null values, means it throws the null reference exception if the list doesn't contains a record with the given criteria
You're jumping from everywhere focus only on one thing. Another thing is explain it first technically not by your own terms then proceed the explanation just explaining that part. I understand nothing as its really vague you keep jumping to list then Interview Question etc. There's no point in learning how to answer a Question when one doesn't understand the core concept of the Answer. Memorizing and understanding the concept are two different thing. You're teaching somebody to become a Robot instead of a Thinker this ain't India.
So did not i talk about the core concept, Did not i demonstrate code . you still this is robot explanation , can you explain what is missed here so that i can also learn. Happy learning.
@@questpondvideos I am not hating as clearly you are expert in c#. But people like me who are literally stupid and skeptical needs an explanation that supports technical. I can't fully grasp it coz you didn't go in it on depth but its okay I get it now after banging my head on how to use it properly on mvvm concept.
30 Important C# Interview Questions : ruclips.net/video/BKynEBPqiIM/видео.html
Software Architecture Interview Questions : ruclips.net/video/AtTgcbLOqMM/видео.html
20+ Garbage Collection (GC) Interview Questions : ruclips.net/video/RgfuVp2lXIA/видео.html
25+ OOPS Interview Questions : ruclips.net/video/u99wAoBjDvQ/видео.html
20+ SQL Server Interview Questions : ruclips.net/video/SEdAF8mSKS4/видео.html
10+ Power BI Interview Questions : ruclips.net/video/Cozc9WNBRt4/видео.html
20 MSBI Interview Questions : ruclips.net/video/Nw_sHEKnOUE/видео.html
SQL Server Joins : ruclips.net/video/KTvYHEntvn8/видео.html
SQL Step by Step - ruclips.net/video/uGlfP9o7kmY/видео.html
Angular Step by Step Tutorial for Beginners : ruclips.net/video/-9VcW7MBDs8/видео.html
25 Angular Interview Questions : ruclips.net/video/-jeoyDJDsSM/видео.html
25 Important ASP.NET Interview Questions : ruclips.net/video/pXmMdmJUC0g/видео.html
35 Important JavaScript Interview Questions : ruclips.net/video/Zb4dPi7CANU/видео.html
20 MySQL Interview Questions : ruclips.net/video/9hfjC-BpY20/видео.html
5 MSBI Interview Questions : ruclips.net/video/5E815aXAwYQ/видео.html
20 PHP Interview Questions : ruclips.net/video/1bpNSynUrl8/видео.html
thank you sir , it’s bcz of u i am a better c# developer
I'm not a fan of this explanation. At 1:29, the reason you can still use your foreach loop on your list even though you haven't explicitly called IEnumerator is because List inherit from IEnumerable. You can see that if you just "right click" and peek definition on List
Nice and real tutorial. Thanks for sharing. I use object generic IEnumerable in the abstract class, and I use a list of myclass in my subclasses.
IEnumerable uses iterator pattern
Sir, please make video about IEnumerator and Yield. Thank you in advance!
Nice video
Thank you so much
Thank You Sir !
There might a scenario where we going to implement this pattern to some cases it would be in iterator pattern and in some cases it will be used in a singleton design pattern as well...coz in singleton it acts wrapper + iterator
how about data list? people say thiz is faster than using list wrapper? do you know the keyword on how to use this concerning tabular data?
great video Sir.
Simply explain this thank you
Hi sir please explain delegates with some realtime example
Hi Questpond,
Sir Please clear this doubt I have done same things what you have done in your code but I Didn't use IEnumerable but still there is no error and I am getting desired output. Then Why to use IEnumerable.
Please have a Look at these piece of lines.
using System;
using System.Collections;
using System.Collections.Generic;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
foreach(var temp in get()){
Console.WriteLine(temp);
}
}
static dynamic get(){
int a=1;
var arlist1 = new ArrayList();
arlist1.Add(1);
arlist1.Add("Bill");
arlist1.Add(" ");
arlist1.Add(true);
if(a>1)
return "good";
else
return arlist1;
}
}
}
and getting output :
1
Bill
True
Great
Very helpful 👍
Your question's answer is that - IEnumerable uses an Iterator design pattern.
Thank you.
Iterator, Composite, Decorator, and Proxy patterns
@4:00
Shared
Sir, I am confuse between Thread and Async Await.. plz make a video on them
Async methods are intended to be non-blocking operations, it doesn't create new thread whereas Thread creates new thread and runs at the same time (concurrently) on different CPU core on the system.
@@carmelraj2158 what about TPL
@Carmel raj is right. If you want understand that sentence practically check this video , its one of our best creations ruclips.net/video/G3tz9rxts8E/видео.html
@@questpondvideos thank you Sir
Can you explain sir ...runtime polymorphism
Keep uploading
Answer is - Iterator Design Pattern
Iterator pattern
IEnumerable uses Iterator pattern
What is the difference between first() and firstordefualt()
FirstorDefault() => handles the null values from the results in a list
First() => doesn't handle the null values, means it throws the null reference exception if the list doesn't contains a record with the given criteria
Behavioral Iterator Pattern
Iterator
Iterator Pattern
sir please dont west time on other talk you have create 8 min video and 4 min you have waste on other talk so please
You're jumping from everywhere focus only on one thing. Another thing is explain it first technically not by your own terms then proceed the explanation just explaining that part. I understand nothing as its really vague you keep jumping to list then Interview Question etc. There's no point in learning how to answer a Question when one doesn't understand the core concept of the Answer. Memorizing and understanding the concept are two different thing. You're teaching somebody to become a Robot instead of a Thinker this ain't India.
So did not i talk about the core concept, Did not i demonstrate code . you still this is robot explanation , can you explain what is missed here so that i can also learn. Happy learning.
@@questpondvideos I am not hating as clearly you are expert in c#. But people like me who are literally stupid and skeptical needs an explanation that supports technical. I can't fully grasp it coz you didn't go in it on depth but its okay I get it now after banging my head on how to use it properly on mvvm concept.
@@exogendesign4582 you should start with basic learn c# and then start with this video ruclips.net/video/AxEGRBFwlmI/видео.html
Factory pattern
No :-(
IEnumerable/IEnumerator implement Iterator Pattern @Questpond
IEnumerable uses Iterator design pattern
Iterator pattern
Iterator
Iterator pattern
Iterator pattern
Repository pattern
iterator pattern
Iterator pattern
Iterator pattern