using System;
public class AddEm
{
public static long Add( params int[] args )
int ctr = 0;
long ttl = 0;
for (ctr = 0; ctr < args.Length; ctr++)
ttl += args[ctr];
}
return ttl;
public class Program
public static void Main()
long Total;
Total = AddEm.Add( 1 );
Console.WriteLine("Total of (1) = {0}" , Total);
Total = AddEm.Add( 1, 2 );
Console.WriteLine("Total of (1, 2) = {0}" , Total);