C#, the Java of Microsoft

The C# language is easier to use than C++, however, it require the runtime of .NET to run programs. You can convert you C++ code with no difficulty.
It keeps most Java improvement, a clear object orientation, a garbage collector.

C# was designed by Microsoft (tm) for its new .NET platform as an alternative to Java, inspired (as it) by C++, by Java and various other languages.
Many other languages are implemented on this platform also. This include C++, Pascal, Python, Java, and lot of others, even Cobol and Fortran.
You can mix languages on the .NET platform and use C# along with any language, they can share their objects.

Uncertain future

The future of the language is not well defined. One could have thought that its implementation in Silverlight, once viewed as the platform of the future for Web and mobile apps, will make it an essential language. Then Microsoft moved to Metro, new platform on Windows 8 using HTML 5 and Silverlight (along XAML and an upcoming system).
C# seems not to be viewed by Microsoft as the language for immersive apps. It remains at least a langage for legacy desktop apps and server-side.

JavaScript in version 5 will include classes and so will facilitate the achievement of important applications, it will can replace a language of applications.

Features and differences with C++

C# compiles into intermediate language, the CIL (Common Intermediate Language), which runs on a virtual machine, the CLR (Common Language Runtime). It is the implementation of the CLI, the common language infrastructure.

An important difference with Java is that every Java class is stored in a separate file, which is not a constraint of C#.

Sample code

Merging two strings and displaying the characters.

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

Tools and documents

Programming languages AspectJ - Basic - C - CIL - C++ - C++11 - C# - Dart - Eiffel - Go - Java - JavaScript - JavaFX Script - Pascal - PHP - Python - QML - Rexx - Ruby - Scala - Scriptol - Tcl - HTML - XML - XAML - XUL - SQL