← Back to C# Course | Chapter 1: Setup & Basics | Lesson 1 of 7

What is C#?

C# is a programming language made by Microsoft for building apps, games, and websites. Think of it as a set of clear instructions in a special language that the computer can follow.

In this page:

  1. What is C#?

What is C#?

C# (pronounced "C sharp") is a modern, object-oriented programming language created by Microsoft, led by Anders Hejlsberg, and first released in 2000 as the flagship language of the .NET platform.

It combines the performance and type safety of languages like C++ with a more approachable, productive syntax influenced by Java. C# is used across web development (ASP.NET), desktop applications (WPF, WinForms), game development (Unity), and enterprise backend systems.

Note: C# is one of the most in-demand languages for enterprise software and game development jobs -- learning it also opens the door to building games in Unity, one of the world's most popular game engines.

Example: What is C#?

markup
using System;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
    }
}
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
Common Mistakes
  1. Thinking C# only runs on Windows, when modern .NET runs on Windows, macOS and Linux.
  2. Confusing C# (the language) with .NET (the platform and libraries), so learning the syntax is mistaken for knowing the framework.
  3. Assuming C# is compiled straight to machine code, when it is first compiled to IL and then run by the .NET runtime.
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.