Category: Uncategorized
-
Observer Pattern in C#
What would Anders Hejlsberg, author of the C# language think about the Observer Pattern example found at the global wiki? Given the fact that he advocates using the C# delegate/event system for exactly this pattern? He must be feeling like the inventor of the airbag and experiencing drivers happily bumping their heads on the dashboard…
-
C# swapping values
We have always learned that swapping values in programming is easily done by having a 'helper' value. Because if you do not use a helper value you will get the following problem: c#:{ a = 1; b = 2; a = b; // a now holds 2 b = a; // b now also holds…