Lesson: Introduction to C#

What is C#?

C# (pronounced "C-Sharp") is a modern, object-oriented programming language developed by Microsoft. It's widely used for developing applications on Windows, web, and even game development with Unity.

Basic Syntax

            
using System;

class Program {
    static void Main() {
        Console.WriteLine("Hello, World!");
    }
}
            
        

This is the basic structure of a C# program. It includes a namespace, a class, and a method.

Quiz: Test Your Knowledge

1. What keyword is used to print text to the console in C#?