public Adder(int x, int y)
public int x { get;set; }
public int y { get;set; }
public int z { get;set; }
public static void Main()
Console.WriteLine("Enter x and y");
foo.x = Convert.ToInt32(Console.ReadLine());
foo.y = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("You entered: x: {0}, y: {1}",foo.x,foo.y);
Console.WriteLine("Add result: {0}", foo.z);