C Sharp: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Pat Palmer
(clarification of metadata)
imported>Pat Palmer
(consolidation version information)
Line 1: Line 1:
{{subpages}}
{{subpages}}
{{dambigbox|text=For other uses, see [[C (disambiguation)]].}}
{{dambigbox|text=For other uses, see [[C (disambiguation)]].}}
'''C#''' is a popular, general-purpose [[programming language]] developed at  [[Microsoft]].  C# is fully [[object-oriented programming|object-oriented]] and is under continuous active development by Microsoft.  C# programs are fully portable across all recent Microsoft operating systems since [[Windows 2000]]/[[Windows XP|XP]] (and partially on [[Windows 98]]). As of 2011, C# is in release version 4.  
'''C#''' is a popular, general-purpose [[programming language]] developed at  [[Microsoft]].  C# is fully [[object-oriented programming|object-oriented]] and is under continuous active development by Microsoft.  C# programs are fully portable across all recent Microsoft operating systems since [[Windows 2000]]/[[Windows XP|XP]] (and partially on [[Windows 98]]). The latest version of C# (and its associated .NET platform) as of August 2012 is 4.0.


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 ''runtime'', as it is sometimes called, is available both for [[Windows]] [[client computer|client computers]] and Microsoft [[Web server|Web servers]].  C# programs consist of .exe or .dll files, each containing [[Common Intermediate Language]] (CIL) instructions which will execute in the CLR, a manifest (table of contents), [[metadata]] pertaining to the program, and (possibly) encapsulated resources such as images or audio.   
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 ''runtime'', as it is sometimes called, is available both for [[Windows]] [[client computer|client computers]] and Microsoft [[Web server|Web servers]].  C# programs consist of .exe or .dll files, each containing [[Common Intermediate Language]] (CIL) instructions which will execute in the CLR, a manifest (table of contents), [[metadata]] pertaining to the program, and (possibly) encapsulated resources such as images or audio.   
Line 11: Line 11:
when in previous versions, one might have to write:
when in previous versions, one might have to write:
<code>string fooString = "Hello, World!";</code>
<code>string fooString = "Hello, World!";</code>
The latest version of C# (and its associated .NET platform) as of August 2012 is 4.0.


== Standards and Implementations==
== Standards and Implementations==

Revision as of 01:38, 29 October 2012

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.
For other uses, see C (disambiguation).

C# is a popular, general-purpose programming language developed at Microsoft. 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). The latest version of C# (and its associated .NET platform) as of August 2012 is 4.0.

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 runtime, as it is sometimes called, is available both for Windows client computers and Microsoft Web servers. C# programs consist of .exe or .dll files, each containing Common Intermediate Language (CIL) instructions which will execute in the CLR, a manifest (table of contents), metadata pertaining to the program, and (possibly) encapsulated resources such as images or audio.

C# is deliberately similar to the Java programming language and Java platform[1].

In C# 3.0, Microsoft has added the 'var' keyword, which allows type inference[2]. For instance, one might declare: var fooString = "Hello, World!"; when in previous versions, one might have to write: string fooString = "Hello, World!";

Standards and Implementations

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. An independent version of the Common Language Runtime (not developed by Microsoft) is available as a result of the open source Mono Project[3]; it provides software to develop and run .NET applications on Linux, Solaris, Mac OS X, Windows, and Unix.

References

  1. Mark Johnson, C#: A language alternative or just J--?, JavaWorld.com
  2. Sahil Malik, A Preview of What's New in C# 3.0, developer.com
  3. Mono Project, sponsored by Novell.