C# and .NET for ASP.NET Cores
C# and .NET are the language and platform under ASP.NET Core. C# is a statically typed, object-oriented language with features like records, LINQ, async and await and nullable reference types, and .NET provides the runtime, base libraries and the dotnet CLI to create, build, test and publish projects.
Stage: Foundations · Part of the ASP.NET Core roadmap · Last reviewed 19 November 2026
What to learn in C# and .NET
- Create and run a project with dotnet new and dotnet run
- Write classes, records and interfaces in C#
- Query collections with LINQ methods such as Where and Select
- Use async and await with Task for I/O operations
- Enable nullable reference types and fix the compiler warnings
C# and .NET interview questions
What is the difference between a class and a record in C#?
A class compares instances by reference by default and is usually mutable. A record is designed for data, giving value-based equality, a concise declaration, and with-expressions to create modified copies. Records suit DTOs and immutable models, classes suit objects with behaviour and identity.
What does await do in C#?
await pauses an async method until the awaited Task completes, without blocking the thread, which is returned to the pool to serve other requests. When the task finishes, the method resumes. In web servers this is how I/O-bound code scales to many concurrent requests.
Where C# and .NET fits in the ASP.NET Core roadmap
C# and .NET belongs to the Foundations stage (beginner level), which takes about 28 hours. The framework.
Other units in this stage
Back to the full ASP.NET Core roadmap