.NET Documentation

Core Concepts of .NET

Welcome to the foundational concepts of the .NET ecosystem. This guide will walk you through the essential building blocks that make .NET a powerful and versatile platform for building modern applications.

What is .NET?

.NET is a free, cross-platform, open-source developer platform for building many different types of applications. With .NET, you can:

It consists of several key components that work together to provide a rich development experience.

Core Components

Common Language Runtime (CLR)

The CLR is the execution engine of .NET. It provides essential services such as:

All .NET languages compile to a common intermediate language (IL), which the CLR then executes. This enables interoperability between different .NET languages.

C# (C Sharp)

C# is a modern, object-oriented programming language developed by Microsoft. It's the most popular language for .NET development due to its:

Here's a simple C# example:


using System;

public class Greeter
{
    public static void Main(string[] args)
    {
        // Prompt the user for their name
        Console.Write("Enter your name: ");
        string? name = Console.ReadLine();

        // Greet the user
        string message = $"Hello, {name ?? "Guest"}!";
        Console.WriteLine(message);
    }
}
            

Base Class Library (BCL)

The BCL is a comprehensive set of reusable, object-oriented types and classes that provide common functionality. It includes:

The BCL is a crucial part of the .NET SDK and is accessible from any .NET language.

Software Development Kit (SDK) & Tools

The .NET SDK includes everything you need to develop .NET applications:

Key dotnet CLI commands:

Key Features of Modern .NET

Types of Applications You Can Build

.NET empowers you to build a diverse range of applications:

Explore the different sections of MSDN to dive deeper into each of these areas!