C# Language. W3Schools lessons in English

Ua Es De

C# Introduction

What is C#?

C# is pronounced "C-Sharp".

It is an object-oriented programming language created by Microsoft that runs on the .NET Framework.

C# has roots from the C family, and the language is close to other popular languages like C++ and Java.

The first version was released in year 2002. The latest version, C# 11, was released in November 2022.

C# is used for:

  • Mobile applications
  • Desktop applications
  • Web applications
  • Web services
  • Web sites
  • Games
  • VR
  • Database applications
  • And much, much more!

The latest version of the C# (C-Sharp) programming language is C# 11.0. It was released on November 8, 2022, alongside .NET 7.0.

C# 11.0 includes a number of new features and improvements, including:

  • Raw string literals
  • Support for universal mathematics
  • Initializers for stackalloc arrays
  • Ability to use fixed statements with any type that supports the Span template
  • Access to fixed-width fields without pinning
  • Ability to reassign local ref variables

More detailed information about the new features in C# 11.0 can be found on the Microsoft website.

C# on Microsoft Learn:

This section contains a variety of resources for learning and using C#, including tutorials, documentation, and reference materials. You can also find information about the latest version of C# and new features that are coming in future releases.

Why Use C#?

  • It is one of the most popular programming languages in the world
  • It is easy to learn and simple to use
  • It has a huge community support
  • C# is an object-oriented language that gives a clear structure to programs and allows code to be reused, lowering development costs
  • As C# is close to C, C++ and Java, it makes it easy for programmers to switch to C# or vice versa

Get Started

This tutorial will teach you the basics of C#.

It is not necessary to have any prior programming experience.

Get Started »

An anecdote about C# and Python programmers

— Explain to me what is the difference and commonality between a C# programmer and a Python programmer?

— Everything is simple! The difference is that a C# programmer tries to make this code worse with each subsequent line of code, and a Python programmer tries to make this code better with each line of code! And the common thing is that as a result, they spend almost the same amount of time on their work...