Movatterモバイル変換


[0]ホーム

URL:


Sari la conținut
Wikipediaenciclopedia liberă
Căutare

C sharp

De la Wikipedia, enciclopedia liberă

C#

C#
C♯
Extensiifișiere.cs
ParadigmăMultiparadigmă: structurat, imperativ,obiect-orientat, event-driven, funcțional, generic, reflectiv, concurent
Apărut în2000; acum 26 ani (2000)
Proiectat deMicrosoft
DezvoltatorMicrosoft
Ultima versiune14.0[1] Modificați la Wikidata
Tiparenominative typing[*][[nominative typing (major class of type system, in which compatibility and equivalence of data types is determined by explicit declarations and/or the name of the types)|​]]
inference typing[*][[inference typing (automatic detection of the data type of an expression in a programming language)|​]]
dynamic typing[*][[dynamic typing (type system paradigm in which objects' types are enforced at runtime)|​]] Modificați la Wikidata
Implementări majoreVisual C#,.NET Framework,Mono,DotGNU
Dialecte,Spec#,Polyphonic C#
Influențat deC++,[2]Eiffel,Java,[2]Modula-3,Object Pascal,[3]ML,Icon,Haskell,,F#[note 1]
InfluențeD,Dart,[4]F#,Java,[5]Kotlin,Monkey,Nemerle,Swift,[6]Vala
PlatformăCommon Language Infrastructure
Sistem de operareMultiplatformă
LicențăCLR este proprietar,Mono este dualGPLv3,MIT/X11 și bibliotecile suntLGPLv2,DotGNU este dualGPL șiLGPLv2
Wikibooks logoC Sharp Programming laWikibooks
Modificădate / text Consultați documentația formatului

C# este unlimbaj de programare orientat-obiect conceput deMicrosoft la sfârșitul anilor 90. A fost conceput ca un concurent pentrulimbajul Java. Ca și acesta, C# este un derivat al limbajului de programareC++.

C# și programarea

[modificare |modificare sursă]

C# simplifică mult scrierea de programe pentru sistemul de operareWindows, iOS, Android etc. Este un limbaj de programare cross-platform.

Exemplu de program simplu Windows scris în Managed C++ ( C++/CLI) și C#:

Cod scris în Managed C++ ( C++/CLI):

public:int main(array<System::String ^> ^args){// Activarea efectelor vizuale Windows XP înainte de crearea oricărui controlApplication::EnableVisualStyles();Application::SetCompatibleTextRenderingDefault(false); // Crearea și rularea ferestrei principaleApplication::Run(gcnew Form1());return 0;}

Cod scris în C#:

public static void Main(){       Form1 form1 = new Form1();       form1.Show();       Application.Run(form1);}

Note

[modificare |modificare sursă]
  1. ^for async

Referințe

[modificare |modificare sursă]
  1. ^„What's new in .NET 10”. Accesat în. 
  2. ^abNaugler, David (mai 2007). „C# 2.0 for C++ and Java programmer: conference workshop”.Journal of Computing Sciences in Colleges.22 (5).Although C# has been strongly influenced by Java it has also been strongly influenced by C++ and is best viewed as a descendant of both C++ and Java. 
  3. ^Hamilton, Naomi ().„The A-Z of Programming Languages: C#”.Computerworld. Arhivat dinoriginal la. Accesat în.We all stand on the shoulders of giants here and every language builds on what went before it so we owe a lot to C, C++, Java, Delphi, all of these other things that came before us. (Anders Hejlsberg) 
  4. ^„Web Languages and VMs: Fast Code is Always in Fashion. (V8, Dart) - Google I/O 2013”.Google. Accesat în. 
  5. ^Cornelius, Barry ().„Java 5 catches up with C#”.University of Oxford Computing Services. Accesat în.In my opinion, it is C# that has caused these radical changes to the Java language. (Barry Cornelius) 
  6. ^Lattner, Chris ().„Chris Lattner's Homepage”. Chris Lattner. Accesat în.The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list. 

Legături externe

[modificare |modificare sursă]

Vezi și

[modificare |modificare sursă]
 Acest articol despreprogramare saulimbaje de programare este unciot. Putețiajuta Wikipedia princompletarea sa !
Control de autoritate
Adus de lahttps://ro.wikipedia.org/w/index.php?title=C_sharp&oldid=17004548
Categorie:
Categorii ascunse:

[8]ページ先頭

©2009-2026 Movatter.jp