C Sharp: Difference between revisions
imported>Pat Palmer (adding info about standards) |
imported>Pat Palmer mNo edit summary |
||
Line 5: | Line 5: | ||
C# programs consist of .exe or .dll files, each containing [[Common Intermediate Language]] (CIL) instructions, a manifest (table of contents), [[metadata]], and (possibly) encapsulated resources such as images or audio. | C# programs consist of .exe or .dll files, each containing [[Common Intermediate Language]] (CIL) instructions, a manifest (table of contents), [[metadata]], and (possibly) encapsulated resources such as images or audio. | ||
C# is standardized by ECMA (the ECMA-334 standard) and by ISO/IEC (the ISO/IEC 23270 standard). Microsoft’s C# for the .NET Framework is a conforming implementation of both of these standards. To execute on Windows, C# programs require the installation of the .NET Framework [[Common Language Runtime]] (CLR), a [[virtual machine]] that hides [[operating system]] details. The CLR is available both for [[Windows]] [[client computer|client computers]] and Microsoft [[Web server|Web servers]]. | C# is standardized by ECMA (the ECMA-334 standard) and by ISO/IEC (the ISO/IEC 23270 standard). Microsoft’s C# for the .NET Framework is a conforming implementation of both of these standards. To execute on Windows, C# programs require the installation of the .NET Framework [[Common Language Runtime]] (CLR), a [[virtual machine]] that hides [[operating system]] details. The CLR is available both for [[Windows]] [[client computer|client computers]] and Microsoft [[Web server|Web servers]]. An independent version of the Common Language Runtime (not developed by Microsoft) is available as a result of the [[open source]] [[Mono Project]]<ref>[http://mono-project.com/ Mono Project], sponsored by [[Novell]].</ref>; it provides software to develop and run .NET applications on [[Linux]], [[Solaris]], [[Mac OS X]], [[Windows]], and [[Unix]]. | ||
An independent version of the Common Language Runtime (not developed by Microsoft) is available as a result of the [[open source]] [[Mono Project]]<ref>[http://mono-project.com/ Mono Project], sponsored by [[Novell]].</ref>; it provides software to develop and run .NET applications on [[Linux]], [[Solaris]], [[Mac OS X]], [[Windows]], and [[Unix]]. | |||
Many consider C# to be Microsoft's reaction to the popularity of the [[Java programming language]] and [[Java platform]]<ref>Mark Johnson, [http://www.javaworld.com/jw-11-2000/jw-1122-csharp1.html C#: A language alternative or just J--?], JavaWorld.com</ref>. | Many consider C# to be Microsoft's reaction to the popularity of the [[Java programming language]] and [[Java platform]]<ref>Mark Johnson, [http://www.javaworld.com/jw-11-2000/jw-1122-csharp1.html C#: A language alternative or just J--?], JavaWorld.com</ref>. |
Revision as of 16:33, 4 December 2008
C# is a popular, general-purpose programming language developed for the Microsoft .NET Framework. C# is fully object-oriented and is under continuous active development by Microsoft. C# programs are fully portable across all recent Microsoft operating systems since Windows 2000/XP (and partially on Windows 98). As of 2008, C# is in release version 3.
C# programs consist of .exe or .dll files, each containing Common Intermediate Language (CIL) instructions, a manifest (table of contents), metadata, and (possibly) encapsulated resources such as images or audio.
C# is standardized by ECMA (the ECMA-334 standard) and by ISO/IEC (the ISO/IEC 23270 standard). Microsoft’s C# for the .NET Framework is a conforming implementation of both of these standards. To execute on Windows, C# programs require the installation of the .NET Framework Common Language Runtime (CLR), a virtual machine that hides operating system details. The CLR is available both for Windows client computers and Microsoft Web servers. An independent version of the Common Language Runtime (not developed by Microsoft) is available as a result of the open source Mono Project[1]; it provides software to develop and run .NET applications on Linux, Solaris, Mac OS X, Windows, and Unix.
Many consider C# to be Microsoft's reaction to the popularity of the Java programming language and Java platform[2].
In C# 3.0, Microsoft has added the 'var' keyword, which allows type inference[3]. For instance, one might declare:
var fooString = "Hello, World!";
when in previous versions, one might have to write:
string fooString = "Hello, World!";
References
- ↑ Mono Project, sponsored by Novell.
- ↑ Mark Johnson, C#: A language alternative or just J--?, JavaWorld.com
- ↑ Sahil Malik, A Preview of What's New in C# 3.0, developer.com