Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace EnumTest
- {
- enum TestEnum
- {
- ValueFirst = 1,
- ValueSecond = 2,
- ValueLast = 0
- }
- class Program
- {
- static void Main(string[] args)
- {
- TestEnum e = default(TestEnum);
- Console.WriteLine(e.ToString());
- Console.ReadLine();
- }
- }
- }
- // Prints: ValueLast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement