Sunday, March 9, 2014

New Video: Generic Interfaces

Last month, I started a series on C# Generics on my YouTube channel. Part 2 is now available: C# Generics- Part 2: Interfaces

I'm a big fan of interfaces (as evidenced in IEnumerable, ISaveable, IDontGetIt: Understanding .NET Interfaces). When we add generics to interfaces, we get code that is flexible and reusable. In this video, we take a look at 2 different interfaces that are so similar that we can't help but want to combine them. It turns out that merging them into a single interface is made easy with generics.

Future videos will look at generics in methods as well as generic constraints. So stay tuned for more to come.

C# Generics:
Playlist
Part 1: Collections
Part 2: Interfaces

Happy Coding!

No comments:

Post a Comment