Home
Programming
AspectJ   Basic   C   C++   C#   Eiffel   Java   JavaScript   Pascal   PHP   Python   Rexx   Ruby   Scriptol   Tcl
Markup
HTML   XML   XAML   XUL
Query
SQL

C# - A language for .Net

The C# language was designed by Microsoft (tm) for its new .NET platform.
It is a descendant of C++ with features coming from Java and various other languages.
C# will not be the sole language used on .Net, many other languages are implemented also and they will work concurrently on the platform and share objects, this include C++, Pascal, Python, Java, and lot of other with even Cobol and Fortran. All these languages will be embedded also inside HTML pages as ASP.

Features

C# compiles into intermediate language, the MSIL (MicroSoft Intermediate Language), and uses a multi-language library, the CLR (Common Language Runtime).

Why to use C Sharp?

C# is easier to use than C++. But programs require the CLR runtime of .net to be installed. You can convert you C++ code with no difficulty. It will be cross-platform. You can mix languages on the .net platform and use C# along with any language.
Not usable to distribute software for now.

Sites and tools

Sample code

Merging and displaying lists
 string s = "demo" + "trail";
         
 foreach (char c in s)
 { 
     System.Console.WriteLine(c); 
 } 
Home