Changes

Jump to: navigation, search

A Simple C Sharp Console Application

627 bytes added, 21:57, 9 January 2008
no edit summary
<pre>
C:\Documents and Settings\Neil>csc HelloCsharp.cs
Microsoft (R) Visual C# 2008 Compiler version 3.5.21022.8
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
</pre>
 
If the compiler displays any syntax errors go back to the source and double check you haven't made any typing errors. Remember that C# is case sensitive. A common mistake made by C programmers, for example, is to write ''Main'' as ''main'' which will cause the compiler to display a syntax error.
 
Assuming there are no syntax errors, the next step is to execute the program.
 
== Executing a Compiled C# Program ==

Navigation menu