using System; namespace csMethods { class Methods { static void Main() { voidMethod(); intMethod(); instanciateMe o; // one line Technique... instanciateMe o = new instanciateMe(); o = new instanciateMe(); o.SayHi(); } static void voidMethod() { // return; // optional } static int intMethod() { int junk = 0; // excluding "= 0" will cause an error: use of unassigned local variable return junk; // required otherwise causes errro: "not all code paths return a value" } } public class instanciateMe { public void SayHi() { Console.WriteLine("Hello World"); Console.ReadLine(); // white space example } } }