Using delegates to eliminate duplicate code

added by alexdresko
7/29/2010 12:43:03 PM

2 Kicks, 134 Views

Here’s a simple technique you can use to easily eliminate duplicate code. Try not to let the word “delegates” scare you away from learning the technique and I’ll try to refrain from using the word “delegate” as much as possible. I’ll start small and then work my way towards a more complex example that really demonstrates its power.