As has been said above, C# is a CASE SENSITIVE language and also to add a 'using' directive for 'System' in your code, as your use of System.Console.Out.Writeline indicates you have not.
However, it goes a bit deeper than has already been said. C# defines aliases for the CTS's (Common Type System) datatypes. So, for example, 'int' in C# is actually an alias for the CTS type System.Int32 as is 'string' an alias for System.String.
So, as Dave mentioned above, you would have to have a using declaration for System (using System;) at the head of your code file, OR, use fully qualified CTS types in your code (which I would NOT recommend).
If you were to NOT use the using system declaration, you would have to write System.String.Compare(yada yada)...which will make your code harder to read.
Cheers,
Glenn.