Friday, December 14, 2007

Iterating through Enum

Every time i need to iterate through enum, i forget how to do it... so, for the last time:

foreach(byte b in Enum.GetValues(typeof(CounterPartyVO.CounterPartyTypes)))
Console.WriteLine("{0} : {1}"
, b
, Enum.GetName(typeof(CounterPartyVO.CounterPartyTypes), b)
);

Tuesday, December 11, 2007

ReSharper

Just ran into this add-in and it seems extremely usefull - ReSharper. I especially like the null detection (nightmare with junior devs)... at $199 looks like a good deal to me.
Also, Elegant Code is definately worth keeping an eye on - can't wait for some more in-depth feedback on the VS 2008 stuff (especially testing, since i'm still not ready to give up n-unit).

Friday, December 07, 2007

Graphs on Web

Google came up with yet another cool service - graphs!
Here's kind of SDK and there's also very nice article about it (in czech though).

There's also a paid site here - i believe it's $69 or so. Pretty cool!