Nigel Morse

Follow Nigel Morse via

18 March 2008
18 March 2008

Anonymous delegates rock

0
0
I’m finding I really like C#’s anonymous delegates. I’ve used them several times now in various ways. Normal delegates are already a Good Thing, however basically they are C(++) function pointers with a much nicer syntax. Anonymous delegates do clever things like having the ability to access local variables.  This just provides some syntactic sugar … Read more
0
0
31 October 2007
31 October 2007

Do you yield?

0
1
Yay! I’ve actually used the C# yield statement for the first time. I’ve wanted to use it ever since I read about it, but never really had a use for it until today. I was writing some code to read a SQL Server error log and eventually found an undocumented stored procedure sp_readerrorlog (amazing how … Read more
0
1