Advertisement
LostProphet

EnumTest

Jan 26th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.  
  3. namespace EnumTest
  4. {
  5.     enum TestEnum
  6.     {
  7.         ValueFirst = 1,
  8.         ValueSecond = 2,
  9.         ValueLast = 0
  10.     }
  11.  
  12.     class Program
  13.     {
  14.         static void Main(string[] args)
  15.         {
  16.             TestEnum e = default(TestEnum);
  17.  
  18.             Console.WriteLine(e.ToString());
  19.  
  20.             Console.ReadLine();
  21.         }
  22.     }
  23. }
  24.  
  25. // Prints: ValueLast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement