Created
July 17, 2012 00:56
-
-
Save fresky/3126227 to your computer and use it in GitHub Desktop.
Loop Enum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ProgrammingLanguage | |
{ | |
Language_First = 0, | |
CPP = 1, | |
CSharp = 2, | |
Java =3, | |
Language_Last = 4, | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
for (ProgrammingLanguage language = ProgrammingLanguage.Language_First + 1; language < ProgrammingLanguage.Language_Last; language ++) | |
{ | |
Console.WriteLine(language ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment