got error when compling 2.cs "2.cs(7,5): error CS0246: The type or namespace name `A' could not be found. Are you missing a using directive or an assembly reference? Compilation failed: 1 error(s), 0 warnings" here is the 1.cs: using System; class A { public static void Main () { } public void displayMessage ( string strMessage ) { Console.WriteLine("Your Input is:{0}",strMessage); } } here is the 2.cs: using System; class B { public static void Main () { A objA=new A(); string strInput=Console.Read("Please input something here:"); objA.displayMessage(strInput); } }