Stumbled across this method of enumerating an enum. V. handy...
foreach (anEnumType enumValue in Enum.GetValues(typeof(anEnumType)))
{
Console.WriteLine(enumValue .ToString());
}
Subscribe to:
Post Comments (Atom)
A .NET / C# / New technology blog.
2 comments:
Excellent! So simple!
Thanks buddy.
Post a Comment