My first instinct response is: Objects that implement IEnumerable interface allow us to iterate over them. Furthermore it allows like other Interfaces to develop generic and loosely coupled code. Having said this. I learn a lot from your videos 👏. Thanks for sharing and making these public. 👏👏
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 ua-cam.com/video/G3tz9rxts8E/v-deo.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 : ua-cam.com/video/BKynEBPqiIM/v-deo.html
Software Architecture Interview Questions : ua-cam.com/video/AtTgcbLOqMM/v-deo.html
20+ Garbage Collection (GC) Interview Questions : ua-cam.com/video/RgfuVp2lXIA/v-deo.html
25+ OOPS Interview Questions : ua-cam.com/video/u99wAoBjDvQ/v-deo.html
20+ SQL Server Interview Questions : ua-cam.com/video/SEdAF8mSKS4/v-deo.html
10+ Power BI Interview Questions : ua-cam.com/video/Cozc9WNBRt4/v-deo.html
20 MSBI Interview Questions : ua-cam.com/video/Nw_sHEKnOUE/v-deo.html
SQL Server Joins : ua-cam.com/video/KTvYHEntvn8/v-deo.html
SQL Step by Step - ua-cam.com/video/uGlfP9o7kmY/v-deo.html
Angular Step by Step Tutorial for Beginners : ua-cam.com/video/-9VcW7MBDs8/v-deo.html
25 Angular Interview Questions : ua-cam.com/video/-jeoyDJDsSM/v-deo.html
25 Important ASP.NET Interview Questions : ua-cam.com/video/pXmMdmJUC0g/v-deo.html
35 Important JavaScript Interview Questions : ua-cam.com/video/Zb4dPi7CANU/v-deo.html
20 MySQL Interview Questions : ua-cam.com/video/9hfjC-BpY20/v-deo.html
5 MSBI Interview Questions : ua-cam.com/video/5E815aXAwYQ/v-deo.html
20 PHP Interview Questions : ua-cam.com/video/1bpNSynUrl8/v-deo.html
My first instinct response is: Objects that implement IEnumerable interface allow us to iterate over them. Furthermore it allows like other Interfaces to develop generic and loosely coupled code.
Having said this. I learn a lot from your videos 👏. Thanks for sharing and making these public. 👏👏
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.
Sir, please make video about IEnumerator and Yield. Thank you in advance!
IEnumerable uses iterator pattern
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?
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
Hi sir please explain delegates with some realtime example
Simply explain this thank you
Iterator, Composite, Decorator, and Proxy patterns
great video Sir.
Very helpful 👍
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 ua-cam.com/video/G3tz9rxts8E/v-deo.html
@@questpondvideos thank you Sir
Your question's answer is that - IEnumerable uses an Iterator design pattern.
Thank you.
Great
Keep uploading
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
Shared
IEnumerable uses Iterator design pattern
Can you explain sir ...runtime polymorphism
Answer is - Iterator Design Pattern
@4:00
Iterator
Behavioral Iterator Pattern
Iterator Pattern
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 ua-cam.com/video/AxEGRBFwlmI/v-deo.html
Factory pattern
No :-(
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
IEnumerable/IEnumerator implement Iterator Pattern @Questpond
Iterator pattern
IEnumerable uses Iterator pattern
Iterator
Iterator pattern
Iterator pattern
Iterator pattern
Iterator pattern
Repository pattern
iterator pattern