Tuesday, February 11, 2014

New Video: Generic vs. Non-Generic Collections

I've started a series of videos based on my presentation "T, Earl Grey, Hot: Generics in .NET". The first installments is now available on my YouTube channel: C# Generics - Part 1: Collections.

Generics are easy to take for granted, especially since they've been around since .NET 2.0. In this short clip (14 minutes), we compare a non-generic collection (ArrayList) to a generic collection (List<T>). And we see how the generics give us type safety and make our coding very easy.

Future videos will explore using generics in our own interfaces and methods. We'll see how generics can give us flexibility and reuse that would otherwise require us to write multiple classes and methods. Lots more to come.

For more information on the topic (and to download the code samples), visit my website: T, Earl Grey, Hot: Generics in .NET.

Happy Coding!

No comments:

Post a Comment