History[edit]
During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC).[11][12] In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language".[13] Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#.
C#'s principal designer and lead architect at Microsoft is Anders Hejlsberg, who was previously involved with the design of Turbo Pascal, Embarcadero Delphi (formerly CodeGear Delphi, Inprise Delphi and Borland Delphi), and Visual J++. In interviews and technical papers he has stated that flaws[citation needed] in most major programming languages (e.g. C++, Java, Delphi, and Smalltalk) drove the fundamentals of the Common Language Runtime (CLR), which, in turn, drove the design of the C# language itself.
James Gosling, who created the Java programming language in 1994, and Bill Joy, a co-founder of Sun Microsystems, the originator of Java, called C# an "imitation" of Java; Gosling further said that "[C# is] sort of Java with reliability, productivity and security deleted."[14][15] Klaus Kreft and Angelika Langer (authors of a C++ streams book) stated in a blog post that "Java and C# are almost identical programming languages. Boring repetition that lacks innovation,"[16] "Hardly anybody will claim that Java or C# are revolutionary programming languages that changed the way we write programs," and "C# borrowed a lot from Java - and vice versa. Now that C# supports boxing and unboxing, we'll have a very similar feature in Java."[17] In July 2000, Anders Hejlsberg said that C# is "not a Java clone" and is "much closer to C++" in its design.[18]
Since the release of C# 2.0 in November 2005, the C# and Java languages have evolved on increasingly divergent trajectories, becoming somewhat less similar. One of the first major departures came with the addition of generics to both languages, with vastly different implementations. C# makes use of reification to provide "first-class" generic objects that can be used like any other class, with code generation performed at class-load time.[19] Furthermore, C# has added several major features to accommodate functional-style programming, culminating in the LINQ extensions released with C# 3.0 and its supporting framework of lambda expressions, extension methods, and anonymous types.[20] These features enable C# programmers to use functional programming techniques, such as closures, when it is advantageous to their application. The LINQ extensions and the functional imports help developers reduce the amount of "boilerplate" code that is included in common tasks like querying a database, parsing an xml file, or searching through a data structure, shifting the emphasis onto the actual program logic to help improve readability and maintainability.[21]
C# used to have a mascot called Andy (named after Anders Hejlsberg). It was retired on January 29, 2004.[22]
C# was originally submitted to the ISO subcommittee JTC 1/SC 22 for review,[23] under ISO/IEC 23270:2003,[24] was withdrawn and was then approved under ISO/IEC 23270:2006.[25]
Name[edit]
The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch.[26] This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1. The sharp symbol also resembles a ligature of four "+" symbols (in a two-by-two grid), further implying that the language is an increment of C++.[27]
Due to technical limitations of display (standard fonts, browsers, etc.) and the fact that the sharp symbol (U+266F ♯ MUSIC SHARP SIGN (HTML
♯)) is not present on the standard keyboard, the number sign (U+0023 # NUMBER SIGN (HTML #)) was chosen to represent the sharp symbol in the written name of the programming language.[28] This convention is reflected in the ECMA-334 C# Language Specification.[9] However, when it is practical to do so (for example, in advertising or in box art[29]), Microsoft uses the intended musical symbol.
The "sharp" suffix has been used by a number of other .NET languages that are variants of existing languages, including J# (a .NET language also designed by Microsoft that is derived from Java 1.1), A# (from Ada), and the functional programming language F#.[30] The original implementation of Eiffel for .NET was called Eiffel#,[31] a name retired since the full Eiffel language is now supported. The suffix has also been used for libraries, such as Gtk# (a .NET wrapper for GTK+ and other GNOME libraries) and Cocoa# (a wrapper for Cocoa).
Versions[edit]
| Version | Language specification | Date | .NET Framework | Visual Studio | ||
|---|---|---|---|---|---|---|
| ECMA | ISO/IEC | Microsoft | ||||
| C# 1.0 | December 2002 | April 2003 | January 2002 | January 2002 | .NET Framework 1.0 | Visual Studio .NET 2002 |
| C# 1.2 | October 2003 | April 2003 | .NET Framework 1.1 | Visual Studio .NET 2003 | ||
| C# 2.0 | June 2006 | September 2006 | September 2005[note 3] | November 2005 | .NET Framework 2.0 | Visual Studio 2005 |
| C# 3.0 | None[note 4] | August 2007 | November 2007 |
.NET Framework 2.0 (Except LINQ/Query Extensions)[32]
.NET Framework 3.0 (Except LINQ/Query Extensions)[32] .NET Framework 3.5 | Visual Studio 2008 Visual Studio 2010 | |
| C# 4.0 | April 2010 | April 2010 | .NET Framework 4 | Visual Studio 2010 | ||
| C# 5.0 | In Progress[33] | None[note 4] | June 2013 | August 2012 | .NET Framework 4.5 | Visual Studio 2012 Visual Studio 2013 |
| C# 6.0 | None[note 4] | None | July 2015 | .NET Framework 4.6 | Visual Studio 2015 | |

EmoticonEmoticon