// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace MyStuff { public class Test { public static void Main(string[] args) { Console.WriteLine("Start"); try { Console.WriteLine("2+3=" + IntMath.Add(2, 3)); Console.WriteLine("2.0*3.0=" + DoubleMath.Multiply(2.0, 3.0)); Console.WriteLine("10/0=" + IntMath.Divide(10, 0)); } catch (Exception ex) { Console.WriteLine("Exception: " + ex.Message); } Console.WriteLine("End"); } } }