Exemplo n.º 1
0
        public static void GetValueTest()
        {
            var obj = new GetValue();

            try
            {
                obj.AcceptAge();
            }
            catch (CustomException ex)
            {
                Console.WriteLine("Error : {0}", ex.Message);
            }
        }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     //Product.ProductTest();
     GetValue.GetValueTest();
     Console.ReadLine();
 }