var dict = Enum.GetValues(typeof(typFoo)) .Cast<typFoo> () .ToDictionary(t => (int)t, t => t.ToString() );
Jun 08 2012, 13:21