C Sharp: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Tom Morris
No edit summary
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 for the Microsoft [[.NET Framework]].  C# is fully object oriented and is enjoying continuous improvement by Microsoft.  C# programs are portable across all recent Microsoft operating systems since Windows 98 (but only partially on 98).  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 a popular, general-purpose [[programming language]] developed for the Microsoft [[.NET Framework]].  C# is fully [[object-oriented programming|object oriented]] and is enjoying continuous improvement by Microsoft.  C# programs are portable across all recent Microsoft operating systems since Windows 98 (but only partially on 98).  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.


To execute, C# program require the installation of the [[.NET Framework]]'s [[Common Language Runtime]] (CLR), a [[virtual machine]] that hides any [[operating system]] details.  [[Microsoft|Microsoft's]] .NET CLR is available both for Windows client computers and Microsoft web servers.
To execute, C# program require the installation of the [[.NET Framework]]'s [[Common Language Runtime]] (CLR), a [[virtual machine]] that hides any [[operating system]] details.  [[Microsoft|Microsoft's]] .NET CLR is available both for Windows client computers and Microsoft web servers.


An independent version of the CLR (not developed by Microsoft) is available as a result of the Mono<ref>http://mono-project.com/Main_Page</ref> project; it provides software to develop and run .NET applications on Linux, Solaris, Mac OS X, Windows, and Unix. Sponsored by Novell (http://www.novell.com), Mono is an open source project.
An independent version of the [[Common Language Runtime|CLR]] (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>.
 
In C# 3.0, [[Microsoft]] has added the 'var' keyword, which allows type inference<ref>Sahil Malik, [http://www.developer.com/net/csharp/article.php/3561756 A Preview of What's New in C# 3.0], developer.com</ref>. For instance, one might declare:
<code>var fooString = "Hello, World!";</code>
when in previous versions, one might have to write:
<code>string fooString = "Hello, World!";</code>


==References==
==References==
<references />
<references />

Revision as of 12:34, 28 June 2008

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 for the Microsoft .NET Framework. C# is fully object oriented and is enjoying continuous improvement by Microsoft. C# programs are portable across all recent Microsoft operating systems since Windows 98 (but only partially on 98). 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.

To execute, C# program require the installation of the .NET Framework's Common Language Runtime (CLR), a virtual machine that hides any operating system details. Microsoft's .NET CLR is available both for Windows client computers and Microsoft web servers.

An independent version of the CLR (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

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