>using System; > >namespace test >{ > class Class1 > { > [STAThread] > static void Main(string[] args) > { > Console.WriteLine("Start of app"); > test.Class1.myMethod(test.Class1.myEnum.SR0); > test.Class1.myMethod(0); > System.Threading.Thread.Sleep(5000); > } > public enum myEnum : byte > { > SR0 = 0xE0, > SR1 = 0xE1, > SR2 = 0xE2, > SR3 = 0xE3 > } > public static void myMethod (myEnum paraMyEnum) > { > Console.WriteLine(((byte) paraMyEnum).ToString()); > } > } >} >>
>Start of app >224 >0 >>(note 224 is equal to 0xE0)