Explain IEnumerable in C# ( C# Interview Questions)

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025

Комментарии • 52

  • @questpondvideos
    @questpondvideos  2 года назад +3

    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

  • @scotolivera8207
    @scotolivera8207 2 года назад +4

    thank you sir , it’s bcz of u i am a better c# developer

  • @elliottharrison
    @elliottharrison 2 года назад +5

    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

  • @imadabab
    @imadabab Год назад

    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.

  • @AlgoEasyByArunavaBanerjee
    @AlgoEasyByArunavaBanerjee 2 года назад +15

    IEnumerable uses iterator pattern

  • @artmasterio1036
    @artmasterio1036 2 года назад +4

    Sir, please make video about IEnumerator and Yield. Thank you in advance!

  • @compman73
    @compman73 3 месяца назад

    Nice video
    Thank you so much

  • @ketankumarsingh6716
    @ketankumarsingh6716 2 года назад +2

    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

    • @exogendesign4582
      @exogendesign4582 2 года назад

      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?

  • @shahfaisal3923
    @shahfaisal3923 2 года назад

    great video Sir.

  • @nishamaury4026
    @nishamaury4026 2 года назад

    Simply explain this thank you

  • @shabiyabanu7990
    @shabiyabanu7990 2 года назад +2

    Hi sir please explain delegates with some realtime example

  • @Shreya-ff9dx6fv1s
    @Shreya-ff9dx6fv1s Год назад +1

    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

  • @hemantkumawat9173
    @hemantkumawat9173 2 года назад

    Great

  • @amamsharma372
    @amamsharma372 2 года назад

    Very helpful 👍

  • @CodeSample360
    @CodeSample360 7 месяцев назад

    Your question's answer is that - IEnumerable uses an Iterator design pattern.
    Thank you.

  • @saumya9932
    @saumya9932 4 месяца назад

    Iterator, Composite, Decorator, and Proxy patterns

  • @udhayakumar-i1k
    @udhayakumar-i1k Год назад

    @4:00

  • @wewtrtr
    @wewtrtr 2 года назад

    Shared

  • @niteshchaurasia1332
    @niteshchaurasia1332 2 года назад +2

    Sir, I am confuse between Thread and Async Await.. plz make a video on them

    • @carmelraj2158
      @carmelraj2158 2 года назад +4

      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.

    • @abhikarne
      @abhikarne 2 года назад

      @@carmelraj2158 what about TPL

    • @questpondvideos
      @questpondvideos  2 года назад +3

      @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

    • @niteshchaurasia1332
      @niteshchaurasia1332 2 года назад

      @@questpondvideos thank you Sir

  • @Anuj_sk
    @Anuj_sk 6 месяцев назад

    Can you explain sir ...runtime polymorphism

  • @amamsharma372
    @amamsharma372 2 года назад

    Keep uploading

  • @barwalgayatri4655
    @barwalgayatri4655 Год назад

    Answer is - Iterator Design Pattern

  • @srinubathina9096
    @srinubathina9096 2 года назад +2

    Iterator pattern

  • @seanishok04
    @seanishok04 2 года назад +1

    IEnumerable uses Iterator pattern

  • @jerinpalissery4797
    @jerinpalissery4797 2 года назад

    What is the difference between first() and firstordefualt()

    • @thiru2175
      @thiru2175 2 года назад +1

      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

  • @trijay
    @trijay Год назад

    Behavioral Iterator Pattern

  • @sudhansusekharsatapathy8908
    @sudhansusekharsatapathy8908 8 месяцев назад

    Iterator

  • @kapilagarwal3887
    @kapilagarwal3887 2 года назад

    Iterator Pattern

  • @itsniks8782
    @itsniks8782 Год назад

    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

  • @exogendesign4582
    @exogendesign4582 2 года назад +1

    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.

    • @questpondvideos
      @questpondvideos  2 года назад +1

      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.

    • @exogendesign4582
      @exogendesign4582 2 года назад

      @@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.

    • @questpondvideos
      @questpondvideos  2 года назад

      @@exogendesign4582 you should start with basic learn c# and then start with this video ruclips.net/video/AxEGRBFwlmI/видео.html

  • @sumitsingh-dp7ue
    @sumitsingh-dp7ue 2 года назад

    Factory pattern

  • @stutiagarwal7057
    @stutiagarwal7057 9 месяцев назад

    IEnumerable/IEnumerator implement Iterator Pattern @Questpond

  • @ShamimShaikhAM
    @ShamimShaikhAM 2 года назад +1

    IEnumerable uses Iterator design pattern

  • @techinfo6896
    @techinfo6896 2 года назад +1

    Iterator pattern

  • @udayshastri5288
    @udayshastri5288 4 месяца назад

    Iterator

  • @artak9439
    @artak9439 2 года назад +1

    Iterator pattern

  • @kamdemkakengne
    @kamdemkakengne 2 года назад +1

    Iterator pattern

  • @harshithaharshi1175
    @harshithaharshi1175 2 года назад

    Repository pattern

  • @chandrashekhargupta4377
    @chandrashekhargupta4377 10 месяцев назад

    Iterator pattern

  • @kaleemiqbal4190
    @kaleemiqbal4190 5 месяцев назад

    Iterator pattern