46 Articles


11 years Ago

Generics and Delegates in C#

Published by Marco on

The term DRY—Don’t Repeat Yourself—has become more and more popular lately as a design principle. This is nothing new and is the main principle underlying object-oriented programming. As OO programmers, we’ve gotten used to using inheritance and polymorphism to encapsulate concepts. Until recently, languages like C# and Java have had only very limited support for re-using functionality across larger swathes of code.[1] To illustrate this, let’s take a look at a simple class with a descendent... [More]