--- name: olore-dotnet-csharp-latest description: Local C# language documentation reference (latest). C# language documentation. Use for C# language features, syntax, types, LINQ, async/await, pattern matching, records, generics, and language specification. --- # dotnet-csharp Documentation C# language documentation from the official dotnet/docs repository. Covers language features, syntax, types, LINQ, async/await, pattern matching, records, generics, and more. ## Quick Reference | Task | Entry Point | |------|-------------| | Language overview | `contents/tour-of-csharp/overview.md` | | Built-in types reference | `contents/language-reference/builtin-types/` | | Keywords reference | `contents/language-reference/keywords/` | | Operators reference | `contents/language-reference/operators/` | | async/await (TAP model) | `contents/asynchronous-programming/task-asynchronous-programming-model.md` | | LINQ | `contents/linq/index.md` | | Pattern matching | `contents/fundamentals/patterns/pattern-matching.md` | | Nullable reference types | `contents/fundamentals/null-safety/nullable-reference-types.md` | | Generics | `contents/programming-guide/generics/constraints-on-type-parameters.md` | | Records | `contents/fundamentals/types/records.md` | | Compiler errors | `contents/language-reference/compiler-messages/` | | What's new (C# 14/15) | `contents/whats-new/csharp-14.md` | ## When to use Use this skill when the user asks about: - C# language syntax, keywords, operators, or statements - Type system: classes, structs, records, interfaces, generics, enums, tuples - async/await, Tasks, ValueTask, IAsyncEnumerable - LINQ queries (query syntax and method syntax) - Pattern matching, switch expressions - Nullable reference types and null safety - Delegates, events, and lambda expressions - String interpolation, raw string literals - Expression trees, reflection, and attributes - Interop (COM, P/Invoke, dynamic) - ref, in, out, ref struct, Span performance patterns - Compiler error codes (CSxxxx) - C# 12, 13, 14, 15 new language features ## How to find information 1. **First**, read `TOC.md` for complete file listing organized by directory 2. Identify relevant section based on user's question 3. Read specific files for details **TOC.md contains all files organized by directory - always check it first.**