Refactoring with Generics
Kathleen Dollard, Northern Colorado .NET SIG
www.gendotnet.com
Generics open up new opportunities to increase the robustness of your code, improve
its performance, and significantly reduce the total amount of code you write. After a
brief introduction to generic syntax, this talk dives into using generics to improve
the quality of your code. You'll see how easy it is to shift your current collections
to generic collections and learn about new features such as robust sorts, finds, and
filters across collections. You'll learn how to write your own generic methods and classes.
Finally you'll see how to leverage the spectrum of generic possibilities in a business object
hierarchy that reduces the total lines of code by about 50%. You'll walk out of this talk
understanding how to use generics to improve your own applications.
Kathleen has been developing business applications for over 20 years, programming in Visual
Basic for almost ten years, and working with .NET since the early betas. As an independent
consultant, she has had the opportunity to work in a variety of domains, including the finance
and justice sectors. Kathleen has worked extensively with application code generation and is
the author of Code Generation in Microsoft .NET (from Apress). She has published numerous articles
on a range of .NET technologies including XSLT, debugging, ADO.NET, and code generation. Kathleen
is also a long time Microsoft MVP, president of the Northern Colorado .NET SIG, and is an active
member of the Denver Visual Studio User Group.