Back to results for “Fundamentals”
C# Programming › .NET Framework Fundamentals

What is C#?

Beginner

Answer

C# is a modern, object oriented, and type safe programming language developed by Microsoft specifically for building applications on the dot NET platform. It combines the power and performance of languages like C plus plus with the productivity and simplicity of languages like Java, and it supports features such as strong typing, garbage collection, generics, LINQ, and async programming, making it a popular choice for building web applications, desktop software, games, and cloud services.
using System;

class Program {
    static void Main() {
        Console.WriteLine("Hello from C#");
    }
}
Real-world example A company building a cross platform business application chooses C# because it allows the same codebase, using shared business logic, to power a web API, a desktop application, and even a mobile app through different dot NET based frameworks.

Common follow-ups: How does C# compare to Java in terms of syntax and features?;What versions of C# are currently supported?