Monthly Archives: March 2006

.Net 2.0+ Essential Reading

.Net 2.0 Essential Reading People keep asking me to recommend a good book for learning C# or
understanding the .Net Framework. But in general there are two problems with programming books: a) There
are far too many out there (making it hard to ferret out the good ones). b) Most of them are too long and
verbose (resulting in a lot of wasted time poring over each one to find what you need to know). What I
decided to do is put together a list of what I consider the very best books related to C# and the .Net Platform.
If you’re like me, you’ve got a few other things to do Continue reading

Posted in Technical | 1 Comment

Calling Invoke on a Delegate

Calling Invoke on a Delegate In C# version 1.x you could not call Invoke directly on a delegate instance.
Doing so would generate a compiler error. class MyApp { delegate void MyDelegate(); static void
TargetMethod(){} static void Main(string[] args) { MyDelegate del = new MyDelegate(TargetMethod); // Illegal
in C# 1.x — generates a CS1533 compiler error del.Invoke(); } } The way to invoke a delegate was to use the
delegate like calling a method directly. // In C# 1.x you must invoke a delegate like this del(); Not everyone
liked having to do it this way. (Don Box was critical of this requirement in his book, Essential Continue reading

Posted in Technical | Leave a comment