using System; public class Test{ public static void Main() { string name="adam"; myInt=Convert.ToInt32("name"); Console.WriteLine("Name as an int is {0}", myInt); Console.ReadLine(); }}
Standard input is empty
prog.cs(8,17): error CS0103: The name `myInt' does not exist in the current context prog.cs(9,60): error CS0103: The name `myInt' does not exist in the current context Compilation failed: 2 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!