Skip to main content

C# Cheatsheet

New

C# syntax, LINQ, async/await, records, pattern matching, and nullable reference types.

csharpdotnetreferencecheatsheet
Read the guide
Shortcuts:⌘ KSearch
0 entries

Frequently Asked Questions

Does this cover async C# or mostly syntax trivia?

It has a full Async & Tasks section with async Task methods, Task.WhenAll, ValueTask, CancellationToken, await using, and ConfigureAwait examples.

Are records and with expressions included?

Yes. There are dedicated entries for record types, with expressions, init-only properties, and a primary-constructor class example.

Can I filter straight to LINQ patterns like SelectMany or GroupBy?

Yes. The Collections & LINQ tab groups that material, and the search box also matches method names inside syntax, descriptions, and examples.

If I press Copy syntax, do I get the tiny summary or the fuller code sample?

You get the full syntax sample stored for that card. The short line is only for compact reading in the UI.

Does it mention nullable reference types and pattern matching?

Yes. The Pattern Matching & Nullability section includes type, property, and list patterns plus null-coalescing, null-conditional access, and string? style nullable references.

Related Tools