Skip to content

Instantly share code, notes, and snippets.

@daleth90
Created Nov 26, 2018
Embed
What would you like to do?
using System;
enum Season { SPRING, SUMMER, AUTUMN, WINTER }
class Program {
static void Main() {
Console.WriteLine( (int)Season.SPRING ); // 0
Console.WriteLine( (int)Season.SUMMER ); // 1
Console.WriteLine( (int)Season.AUTUMN ); // 2
Console.WriteLine( (int)Season.WINTER ); // 3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment