Aller au contenu

C Sharp

Si Wikipedia, tasanayt tilellit.
C#
Paradigm Structured, imperative, object-oriented, event-driven, task-driven, functional, generic, reflective, concurrent
Family C
Designed by Microsoft
Developer Microsoft
First appeared 2000[1]
Stable release
7.3[2] / mayyu 7, 2018; 7 iseggasen aya (2018-05-07)
Preview release
8.0[3]
Typing discipline static, dynamic,[4] strong, safe, nominative, partially inferred
Platform Common Language Infrastructure
License

Roslyn compiler: Apache License 2.0[5]
.NET Core CLR: MIT/X11[6]

Mono compiler: dual GPLv3 and MIT/X11

DotGNU: dual GPL and LGPL
Filename extension .cs
Website docs.microsoft.com/dotnet/csharp/language-reference/
Major implementations
Visual C#, .NET Framework, Mono, .NET Core, DotGNU (discontinued), Universal Windows Platform
Dialects
, Spec#, Polyphonic C#, Enhanced C#
Influenced by
C++,[7] , Eiffel, F#,[lower-alpha 1], Haskell, Icon, J#, J++, Java,[7] ML, Modula-3, Object Pascal,[8] Rust, VB
Influenced
Chapel,[9], Clojure,[10] Crystal,[11] D, J#, Dart,[12] F#, Hack, Java,[13][14] Kotlin, Monkey, Nemerle, Oxygene, Ring,[15] Rust, Swift,[16] Vala, TypeScript

C Sharp neɣ C# d tameslayt n usihel sɣur Microsoft. Designer n tameslayt-agi isem-is Anders Hejlsberg.

Akk d C#, Microsoft tebɣa ad tesnulfu tameslayt n programmation tugar Java n Oracle, di 1999 teffeɣ-d version tamezwarut n C#, version-agi tella tettcabi s waṭas ɣer Java.

Di les versions nniḍen, C# yettembeddal u yerna aṭas les fonctionnalités i ixuṣṣen di Java am :

  • Lambda expressions,
  • Generics,
  • Automatic Get Set,
  • Async await,
  • Extension Methods,

C# d tutlayt teddu g lFramework .Net, llant 3 les versions n .Net :

  • .Net Framework : sɣur Microsoft, wagi mači d ilelli.
  • .Net Mono : sɣur Novel, d ilelli.
  • .Net Core : sɣur Microsoft, d ilelli.

Akken yiwen ad yeprogrami mebla ad yessen lFramework gar 3 les Framework-agi, Microsoft teffeɣ-d .Net Standard.

Hello world

[ẓreg | ẓreg aɣbalu]
using System;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, world!");
    }
}

Tiwelhiwin

[ẓreg | ẓreg aɣbalu]
  1. https://www.infoq.com/minibooks/emag-c-sharp-preview
  2. https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-7-3
  3. "What's new in C# 8.0". Microsoft Docs. Microsoft. Retrieved 2019-04-13.
  4. Tuccḍa n temsisɣelt: Balise <ref> incorrecte : aucun texte n’a été fourni pour les références nommées dynamic
  5. https://github.com/dotnet/roslyn/blob/1ff27b046b5c03abb38bfeda44eb82da0b8df9de/License.txt
  6. https://github.com/dotnet/coreclr/blob/master/LICENSE.TXT
  7. 1 2 Tuccḍa n temsisɣelt: Balise <ref> incorrecte : aucun texte n’a été fourni pour les références nommées influenced by CPP
  8. Tuccḍa n temsisɣelt: Balise <ref> incorrecte : aucun texte n’a été fourni pour les références nommées influenced by op
  9. "Chapel spec (Acknowlegements)" (PDF). Cray Inc. 2015-10-01. Archived from the original (PDF) on 2016-02-05. Retrieved 2016-01-14.
  10. "Rich Hickey Q&A by Michael Fogus". Archived from the original on 2017-01-11. Retrieved 2017-01-11. Unknown parameter |dead-url= ignored (help)
  11. Borenszweig, Ary. "Crystal 0.18.0 released!". It's heavily inspired by Ruby, and other languages (like C#, Go and Python).
  12. "Web Languages and VMs: Fast Code is Always in Fashion. (V8, Dart) - Google I/O 2013". Google. Retrieved 22 December 2013.
  13. Java 5.0 added several new language features (the enhanced for loop, autoboxing, varargs and annotations), after they were introduced in the similar (and competing) C# language
  14. Tuccḍa n temsisɣelt: Balise <ref> incorrecte : aucun texte n’a été fourni pour les références nommées influenced
  15. Ring Team (5 December 2017). "Ring programming language and other languages". ring-lang.net. ring-lang. Archived from the original on 25 December 2018. Retrieved 20 April 2019.
  16. Lattner, Chris (2014-06-03). "Chris Lattner's Homepage". Chris Lattner. Retrieved 2014-06-03. 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, CLU, and far too many others to list.
  1. Torgersen, Mads (October 27, 2008). "New features in C# 4.0". Microsoft. Archived from the original on January 3, 2012. Retrieved October 28, 2008.
  2. Naugler, David (May 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 (October 1, 2008). "The A-Z of Programming Languages: C#". Computerworld. Archived from the original on March 24, 2010. Retrieved February 12, 2010. 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. Cornelius, Barry (December 1, 2005). "Java 5 catches up with C#". University of Oxford Computing Services. Retrieved June 18, 2014. In my opinion, it is C# that has caused these radical changes to the Java language. (Barry Cornelius)
  1. for async
Tuccḍa n temsisɣelt: Des balises <ref> existent pour un groupe nommé « lower-alpha », mais aucune balise <references group="lower-alpha"/> correspondante n’a été trouvée