C# - Implementing the IEnumerable interface

Published: 08 April 2021
on channel: Codewrinkles
1,026
28

In this video we try to showcase how to implement the IEnumerable interface in C#. To be hones, it's more about "why" we need to do this and that's why we try to illustrate the concept of enumerability using two scenarios that I have recently encountered in my day to day work.

Implementing interfaces is one of the most common tasks that we face as developers. Implementing interfaces that we create it's actually very easy since we know exactly why those interfaces were created and what are their purpose. But when it comes to implementing C# / .NET interfaces things a are slightly more complicated since the first thing we need to understand is why those interfaces were created and what their purpose is.

In this video we concentrate on implementing the IEnumerable interface, to be more specific. It's not just a simple tutorial, as I try to showcase the "why's" using two concrete scenarios that I have recently encountered in my day to day work!

Mentioned videos:
Implementing a Vector data type (1):    • C# custom data types - Vectors (01)  
Implementing a Vector data type (2):    • C# custom data types - Vectors (02)  

Table of contents:
1. Intro: 00:00
2. Why implementing Ienumerable on a Vector data type? 01:39
3. Implementing IEnumerable (1st scenario) 04:46
4. Implementing IEnumerable of T: 08:00
5. Implementing IEnumerable of T (2nd scenario): 12:01

#dotnet #csharp


On this page of the site you can watch the video online C# - Implementing the IEnumerable interface with a duration of hours minute second in good quality, which was uploaded by the user Codewrinkles 08 April 2021, share the link with friends and acquaintances, this video has already been watched 1,026 times on youtube and it was liked by 28 viewers. Enjoy your viewing!