C Sharp

Si Wikipedia, tasanayt tilellit.
Jump to navigation Jump to search
C Sharp wordmark.svg
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; 14 ayyuren aya (2018-05-07)
Preview release
Typing discipline static, dynamic,[4] strong, safe, nominative, partially inferred
Platform Common Language Infrastructure

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
, 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
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.

Amezruy[ẓreg | ẓreg aɣbalu]

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,

.Net[ẓreg | ẓreg aɣbalu]

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!");

  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. Torgersen, Mads (October 27, 2008). "New features in C# 4.0". Microsoft. Retrieved October 28, 2008. 
  5. https://github.com/dotnet/roslyn/blob/1ff27b046b5c03abb38bfeda44eb82da0b8df9de/License.txt
  6. https://github.com/dotnet/coreclr/blob/master/LICENSE.TXT
  7. 7.0 7.1 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. 
  8. Hamilton, Naomi (October 1, 2008). "The A-Z of Programming Languages: C#". Computerworld. 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) 
  9. "Chapel spec (Acknowlegements)" (PDF). Cray Inc. 2015-10-01. Retrieved 2016-01-14. 
  10. "Rich Hickey Q&A by Michael Fogus". Archived from the original on 2017-01-11. Retrieved 2017-01-11. 
  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 [1] [2]
  14. 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) 
  15. Ring Team (5 December 2017). "Ring programming language and other languages". ring-lang.net. ring-lang. 
  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. 

Tuccḍa n temsisɣelt: <ref> tags exist for a group named "lower-alpha", but no corresponding <references group="lower-alpha"/> tag was found, or a closing </ref> is missing