Beginner CRASH COURSE for IEnumerable in .NET C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • Enumerables and iterators are a confusing topic for many people even if they aren't new to C#. In this video we'll look at the IEnumerable interface and see how this works with respect to some basic collections. This will serve as a very basic introduction and later on we can expand to more complex topics!
    When you're done with this video, you should follow up with this one:
    • What the HECK are Iter...
    You can also follow along in the corresponding blog post here:
    www.devleader....
    Want the source for this video? Check it out here:
    github.com/nco...
    For more information about enumerables, iterators, and collections, see:
    • Beginner CRASH COURSE ...
    Check out more Dev Leader content (including full in depth articles with source code examples) here:
    linktr.ee/devl...
    Social Media:
    TH-cam: / @devleader
    TikTok: / devleader
    Blog: www.devleader.ca/
    GitHub: github.com/nco...
    Twitch: / ncosentino
    Twitter: / devleaderca
    Facebook: / devleaderca
    Instagram: / dev.leader
    LinkedIn: / nickcosentino
    #enumerable #enumerables #enumeration #ienumerable #collections #csharp #dotnet #dotnetcore #beginner #beginners #beginnerprogrammer

ความคิดเห็น • 31

  • @DevLeader
    @DevLeader  ปีที่แล้ว +1

    ✅Like, ✅share, and ✅subscribe to the channel for more full length content about software engineering topics presented by a Principal Software Engineering Manager 🤓
    You can find more Enumerables, Iterators, and Collections here:
    th-cam.com/play/PLzATctVhnsgjE3qOsbkPaC1NxXD605wOC.html

  • @curojimenes2642
    @curojimenes2642 7 หลายเดือนก่อน +7

    Finally, someone explained the way I can understand. Thank you.

    • @DevLeader
      @DevLeader  7 หลายเดือนก่อน

      I'm so happy to hear that 😁 please - let me know other topics you'd like covered!

    • @curojimenes2642
      @curojimenes2642 7 หลายเดือนก่อน +1

      Absolutely no problem. I did not watch your channel {maybe you have covered already}, but here is my list:
      - Linq - this is huge I know
      - Array
      - BigInteger
      - Predicate
      - Method Group
      - Generic Methods - to classes I do not own.
      - Tuple
      - Delegate
      - TryParse
      - Anonymous object
      - HasTable
      - Dictionary {and differences between them}
      - Key Value pair
      - LookUp
      - HashSet
      - Func
      - Predicate
      - Incremental Refactor
      - TryGetValue
      - Regex
      - String literals, Verbatim, escapes
      - Working with files
      - Stopwatch
      - stack (If it is not the same something that covers LIFO and its usage)
      - Reference type
      - Deffere - when is Linq deffereted and how to start the query - you know what I mean...
      - Dump
      - Try Catch

    • @DevLeader
      @DevLeader  7 หลายเดือนก่อน

      @@curojimenes2642 this is GREATLY appreciated 💪
      Good news: I have something BIG coming in the next couple of months.
      Better news: I can try to chip away at this list. It's very valuable to know at least one person would find value in this.
      Best News: (well, maybe) but if you're active on Discord, do you want to send me a message on Twitter/Instagram or my Facebook page? I'll give you lifetime free access for these suggestions and in the meantime I can try answering this stuff as you come across it.
      Let me know 🙂

  • @lucgagnon7169
    @lucgagnon7169 7 หลายเดือนก่อน +2

    Your explanations are incredible! You use short but very specific examples. You go through the process with us and are very educational. I think you deserve way more subscribers and I don't say that lightly. You've earned my subscribe !!

    • @DevLeader
      @DevLeader  7 หลายเดือนก่อน +1

      That means so much ❤️ thanks for the very kind words, and I hope to keep delivering on this for you.
      Feel free to request topics 💪💪

  • @leosouza1520
    @leosouza1520 ปีที่แล้ว +3

    Very good explanation. I always thought that IEnumerable created a copy of the underlying object. Good to know!

    • @DevLeader
      @DevLeader  ปีที่แล้ว +1

      😁 I feel like you've been binge watching my videos! I'm glad you're finding them insightful! And truly, I do appreciate the comments.
      Let me know if you have any questions or any topics you'd like clarified in more detail! I'm happy to try my best.

  • @Travish2011
    @Travish2011 ปีที่แล้ว +2

    This was very clearly explained and helpful. Thanks.

    • @DevLeader
      @DevLeader  ปีที่แล้ว

      Awesome! Thanks for the comment, and I'm glad you found it helpful! 💪
      Feel free to ask about other topics if you find my explanations helpful 🙂 I'm happy to create more content.

  • @_rachid
    @_rachid 8 หลายเดือนก่อน +1

    Thank you ! finally I've understood what IEnumerable stands for 👍

    • @DevLeader
      @DevLeader  8 หลายเดือนก่อน +1

      Awesome 😁 I'm glad this helped! Let me know if you'd like anything else covered!

  • @embossCoder
    @embossCoder ปีที่แล้ว +1

    I just found your channel when i search some explanations for ienumerable. Thank you very much

    • @DevLeader
      @DevLeader  ปีที่แล้ว

      Awesome stuff! I hope that you found this video helpful 🙂

  • @Frosthowl93
    @Frosthowl93 5 หลายเดือนก่อน +1

    This was very easy to understand, thank you for the time and effort.

    • @DevLeader
      @DevLeader  5 หลายเดือนก่อน +1

      I'm so happy to hear that! Thanks for the feedback 💪
      Are there any other topics you'd like me to cover?

    • @Frosthowl93
      @Frosthowl93 5 หลายเดือนก่อน +1

      @DevLeader I haven't reviewed the full content library yet so if I find any gaps I'll let you know!

    • @DevLeader
      @DevLeader  5 หลายเดือนก่อน +1

      @@Frosthowl93 thanks very much! Happy to help cover things that will be valuable 😁

  • @jetalonzo3594
    @jetalonzo3594 ปีที่แล้ว +1

    Thank you!!

    • @DevLeader
      @DevLeader  ปีที่แล้ว

      I'm glad that you enjoyed! Thanks for stopping by 🙂🙂

  • @jatinkumar4410
    @jatinkumar4410 11 หลายเดือนก่อน +1

    nice explanation

    • @DevLeader
      @DevLeader  11 หลายเดือนก่อน

      Thank you! I'm glad that you found it helpful 🙂 Just let me know if there's anything else you'd like covered and I can try to follow up.

  • @hanguyenmanh6818
    @hanguyenmanh6818 11 หลายเดือนก่อน +1

    👍👍

    • @DevLeader
      @DevLeader  11 หลายเดือนก่อน

      I hope you found this helpful!

  • @bakor111
    @bakor111 หลายเดือนก่อน

    Where is the link to follow up video? Name convetion of the videos doesn't lead me anywhere :<
    Great video

    • @DevLeader
      @DevLeader  หลายเดือนก่อน

      Which video are you referring to? I have a whole playlist 🙂
      Enumerables, Iterators, and Collections in C#: th-cam.com/play/PLzATctVhnsgjE3qOsbkPaC1NxXD605wOC.html

    • @tom_606HQ
      @tom_606HQ 28 วันที่ผ่านมา

      @@DevLeader I think he meant the fact that your videos don't have a "part x" to clearly know which video is next and which was pervious other than when you go through the playlist.
      Other than that, that was a pretty cool explanation, I like the way you express yourself, thank you!

  • @Fractalis65
    @Fractalis65 22 วันที่ผ่านมา

    IEnumerable sounds like an unneeded added level of complexity with no apparent advantages.

    • @DevLeader
      @DevLeader  22 วันที่ผ่านมา +1

      @@Fractalis65 the advantage comes with iterators.
      Quick example:
      If you needed to work with a dataset with 100 million entries, a couple options are:
      1) try to load it all into memory (good luck)
      2) build paging/chunking (which can be clunky)
      IEnumerable allows you to build an iterator, which yields back items individually. Your memory footprint becomes very small because you're not pulling the whole dataset in all at once.
      There are lots of really cool things IEnumerables unlock 🙂

  • @essentia9
    @essentia9 13 ชั่วโมงที่ผ่านมา

    when you are trying to explain something difficult please never use vars