static void Main(string[] args) { ParamArray app = new ParamArray(); int sum = app.AddElements(512, 720, 250, 567, 889); Console.WriteLine("The sum is: {0}", sum); }
static void Main(string[] args) { ParamArray app = new ParamArray(); int sum = app.AddElements(1, 2, 3, 4, 5); Console.WriteLine("sum:{0}", sum); }