The following example shows how to enumerate through the values of an enum using the Enum.GetValues static method.
foreach (LogMode mode in Enum.GetValues(typeof(LogMode)))
I design and build software on the Microsoft stack in the Houston, TX area.
Follow me on Twitter.
Enter your email address to subscribe and receive notifications of new posts by email.
Use the contact page or send me an email: brandon [at] brandonzeider [dot] me.
Copyright © 2011 | Brandon Zeider