Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

C Sharp (programming language)

From Simple English Wikipedia, the free encyclopedia
The title of this article is wrong due to some technicallimitations. The right title isC# (programming language).
C#
Designed byMicrosoft
DeveloperMicrosoft
First appeared2000;26 years ago (2000)
Stable release14.0[1] Edit this on Wikidata / 11 November 2025;3 months ago (11 November 2025)
Filename extensions.cs
Websitedocs.microsoft.com/en-us/dotnet/csharp/
This article is about the programming language. For the musical scale, seeC-sharp major. For other uses, seeC-sharp

C# (pronounced "see sharp") is acomputerprogramming language. It is developed byMicrosoft. It was created to use all capacities of the.NET platform. The first version was released in 2001. C# is a modern language in active development, with the most recent version at time of writing being C# 13, which was released in June 2024 alongside .NET 9.[2] C#'s development team is led byAnders Hejlsberg, the creator of Delphi.

Execution Platform

[change |change source]

Today, C# can be run on most platforms (Windows,Linux,macOS, etc.) without changing thesource code. C# can be run on theXbox 360 platform with a specialframework.

Syntax

[change |change source]

C# code is similar toC++ andJava code. TheCLR (Common Language Runtime) is needed in order to run a C# program.[3]

"Hello, World!" example

[change |change source]
/* This is a simple program in C#. * It simply shows "Hello, World!" on the screen. */usingSystem;namespaceHelloWorld{classHello{staticvoidMain(){Console.WriteLine("Hello, World!");// The piece of code below is optional, but is needed to prevent the program from closing immediately.Console.WriteLine("Press any key to exit.");Console.ReadKey();}}}

Basic input example

[change |change source]
/* * This program asks for input from the user, i.e. a name. It then prints "Hello [name]", replacing [name] with whatever the person typed in. */usingSystem;namespaceHelloWorld{classHello{staticvoidMain(){Console.WriteLine("Hello, please type in your name:");stringname=Console.ReadLine();Console.WriteLine("Hello {0}",name);Console.ReadKey();}}}

Integrated Development Environments

[change |change source]

C# can be edited in a number ofIDEs (Integrated Development Environments), some of which are listed below:

Windows:

Mac OS X:

Unix/Linux:

Sources

[change |change source]
  1. "What's new in .NET 10". Retrieved13 November 2025.
  2. BillWagner (2024-07-03)."What's new in C# 13".learn.microsoft.com. Retrieved2024-07-26.
  3. Collected Computer Programming Problems in Visual C#.Net,Hary Gunarto. Tech Publication, Singapore. 2007.ISBN 978-9812141743.

Related pages

[change |change source]

Other websites

[change |change source]
Retrieved from "https://simple.wikipedia.org/w/index.php?title=C_Sharp_(programming_language)&oldid=10715714"
Category:
Hidden category:

[8]ページ先頭

©2009-2026 Movatter.jp