C# glossary – key terms explained
.NET
Platform consisting of a runtime, base library and tools on which C# programs run (Windows, macOS, Linux).
async/await
Language feature for asynchronous code: await waits for a task without blocking the thread.
CLR
Common Language Runtime: the .NET runtime environment that executes IL code, manages memory and handles exceptions.
csproj
Project file (XML) with the target framework, language version, nullable setting and package references.
Delegate
Type that stores references to methods; Func<> and Action<> are the usual predefined delegates.
Event
Notification mechanism based on delegates: subscribers register with +=, the publisher raises the event.
Extension method
Static method with this before the first parameter that is called like an instance method of a foreign type (the basis of LINQ).
Garbage Collector
Automatic memory management that frees objects that are no longer reachable (but not files or connections).
Generics
Type parameters (List<T>) that make classes and methods reusable for arbitrary types in a type-safe way.
IDisposable
Interface with Dispose() for deterministic release of resources; used with using.
IL / JIT
C# is compiled to intermediate code (IL); the just-in-time compiler translates it into machine code at runtime.
Interface
Contract of properties and methods that classes implement; the basis for loose coupling.
LINQ
Language Integrated Query: consistent methods (Where, Select, GroupBy …) for querying collections and data sources.
NuGet
Package manager for .NET (dotnet add package); the counterpart to pip or npm.
Nullable Reference Types
Compiler feature: string is non-null, string? may be null – warnings prevent NullReferenceExceptions.
Pattern Matching
Testing values by type, properties, ranges or list structure – with is and switch.
Record
Reference type for immutable data with value-based equality, ToString and the with expression.
Span<T>
Stack-only view over contiguous memory without copying, for high-performance handling of arrays and text.
Task
Object that represents an (asynchronous) operation; Task<T> delivers a result at the end.
Top-level statements
Statements directly in Program.cs without an enclosing class and Main method (since C# 9).