Knowledge baseExam Center
ENEnglish
Choose language13

Learn C# — Advanced

Design data models and process them in memory in C#. Use records, Span views, asynchronous pipelines and channels; control resources, formatting and JSON serialization.

COURSE OVERVIEWREADY
Lessons: 58
Quizzes: 10
All steps: 68
$Ready to start
Knowledge base for this technology

What you will learn

  • Choose records, classes and structs according to data equality, control changes through readonly, init and with, and describe nullability contracts.
  • Process text and collections through Span, ReadOnlySpan, LINQ and pattern matching, reduce unnecessary copies, and distinguish conventional counters from performance measurements.
  • Build async pipelines and channels with cancellation and closure control, manage resources, and separate configuration, domain logic and result presentation.
  • Create custom JSON converters, enforce identifier formats, check the scope of the write–read round trip, and prepare reproducible reports independent of culture settings.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

58 lessons10 quizzes68 steps total
  1. 01LESSON
    LESSON 1: Overview of modern C# (C# 9–12): what and whyAvailable now
  2. 02LESSON
    LESSON 2: Records (advanced): positional, inheritance, with, required, equalityLocked
  3. 03LESSON
    LESSON 3: Advanced pattern matching: relational, logical, and positional patterns and the when guardLocked
  4. 04LESSON
    LESSON 4: switch expression — idioms and eliminating if/elseLocked
  5. 05LESSON
    LESSON 5: Generic math in C#: INumber<T> and operatorsLocked
  6. 06LESSON
    LESSON 6: Static abstract members in interfaces (C# 11+)Locked
  7. 01QUIZ
    Quiz 1: applying knowledge from lessons 1–6Locked
  8. 07LESSON
    LESSON 7: Default Interface Methods — API EvolutionLocked
  9. 08LESSON
    LESSON 8: Value Semantics: readonly struct, ref struct, scopedLocked
  10. 09LESSON
    LESSON 9: Span<T> and ReadOnlySpan<T> — Allocation-Free ProcessingLocked
  11. 10LESSON
    LESSON 10: Memory<T> and memory owners (IMemoryOwner<T>)Locked
  12. 11LESSON
    LESSON 11: stackalloc and buffering on the stack (without unsafe)Locked
  13. 12LESSON
    LESSON 12: Minimizing allocations and copies — practical techniquesLocked
  14. 02QUIZ
    Quiz 2: applying knowledge from lessons 7–12Locked
  15. 13LESSON
    LESSON 13: ArrayPool<T> and Object Pools — Memory ManagementLocked
  16. 14LESSON
    LESSON 14: ValueTask and Low-Overhead AsynchronyLocked
  17. 15LESSON
    LESSON 15: IAsyncEnumerable<T> — Asynchronous Streams and Pipeline ProcessingLocked
  18. 16LESSON
    LESSON 16: Channels (System.Threading.Channels) — producer-consumer queuesLocked
  19. 17LESSON
    LESSON 17: Synchronization: lock, Monitor, and critical sectionsLocked
  20. 18LESSON
    LESSON 18: Atomic operations: Interlocked and safe counter patternsLocked
  21. 03QUIZ
    Quiz 3: applying knowledge from lessons 13–18Locked
  22. 19LESSON
    LESSON 19: Concurrent collections: ConcurrentDictionary, ConcurrentQueue, ConcurrentBagLocked
  23. 20LESSON
    LESSON 20: Immutable collections (Immutable*) — concurrency safety by designLocked
  24. 21LESSON
    LESSON 21: Advanced cancellation and timeouts — token compositionLocked
  25. 22LESSON
    LESSON 22: Exception handling (advanced): exception filters, rethrow, error policiesLocked
  26. 23LESSON
    LESSON 23: Reflection — inspecting types and metadataLocked
  27. 24LESSON
    LESSON 24: Attributes — designing custom attributes and validationLocked
  28. 04QUIZ
    Quiz 4: applying knowledge from lessons 19–24Locked
  29. 25LESSON
    LESSON 25: Expression Trees (Expression<TDelegate>) — Generating Logic at Run TimeLocked
  30. 26LESSON
    LESSON 26: dynamic and the DLR — Where It Makes Sense, Where to Avoid ItLocked
  31. 27LESSON
    LESSON 27: Iterator Pattern (Advanced): Memory-Efficient Custom EnumeratorsLocked
  32. 28LESSON
    LESSON 28: Designing Equality and Comparison for Performance (sort, hash)Locked
  33. 29LESSON
    LESSON 29: LINQ (advanced): custom operators and pipeline flowsLocked
  34. 30LESSON
    LESSON 30: LINQ and performance: avoiding allocation pitfalls and multiple enumerationLocked
  35. 05QUIZ
    Quiz 5: applying knowledge from lessons 25–30Locked
  36. 31LESSON
    LESSON 31: API Design: Contracts, IDisposable, IAsyncDisposableLocked
  37. 32LESSON
    LESSON 32: using and Deterministic Resource Disposal Without I/OLocked
  38. 33LESSON
    LESSON 33: Advanced Formatting: IFormatProvider, Custom FormatsLocked
  39. 34LESSON
    LESSON 34: Globalization and culture — testable in-memory formattingLocked
  40. 35LESSON
    LESSON 35: Time models: an injected clock (IClock) and testabilityLocked
  41. 36LESSON
    LESSON 36: Domain modeling: immutable values, Value ObjectsLocked
  42. 06QUIZ
    Quiz 6: applying knowledge from lessons 31–36Locked
  43. 37LESSON
    LESSON 37: Type-Safe Identifiers as readonly record structLocked
  44. 38LESSON
    LESSON 38: Mapping Data Without Libraries: Manual Projections and AdaptersLocked
  45. 39LESSON
    LESSON 39: In-Memory Serialization (System.Text.Json): Options and Custom ConvertersLocked
  46. 40LESSON
    LESSON 40: Safe Deserialization — Validation and ContractsLocked
  47. 41LESSON
    LESSON 41: Designing Errors Without Exceptions: Result<T> and OneOf-like VariantsLocked
  48. 42LESSON
    LESSON 42: FSM (finite state machine) with pattern matchingLocked
  49. 07QUIZ
    Quiz 7: applying knowledge from lessons 37–42Locked
  50. 43LESSON
    LESSON 43: Modularity and boundaries: interfaces, records, domain eventsLocked
  51. 44LESSON
    LESSON 44: DI (advanced): composition root and module configurationLocked
  52. 45LESSON
    LESSON 45: Efficient pipelines: combining LINQ + Channels + IAsyncEnumerableLocked
  53. 46LESSON
    LESSON 46: Parallelism with pressure control: back-pressure on channelsLocked
  54. 47LESSON
    LESSON 47: Cost analysis: allocations vs copies vs locks — design decisionsLocked
  55. 48LESSON
    LESSON 48: Designing APIs for testability and deterministic scenariosLocked
  56. 08QUIZ
    Quiz 8: applying knowledge from lessons 43–48Locked
  57. 49LESSON
    LESSON 49: Pipelines, Filtering, Mapping, and Partial Function ApplicationLocked
  58. 50LESSON
    LESSON 50: Operator Overloading — Monetary Calculations and RecordsLocked
  59. 51LESSON
    LESSON 51: Index and Range in Efficient Data SlicesLocked
  60. 52LESSON
    LESSON 52: readonly and init — consistency and immutability in the modelLocked
  61. 53LESSON
    LESSON 53: Nullability (advanced): annotations, contracts, flow analysisLocked
  62. 09QUIZ
    Quiz 9: applying knowledge from lessons 49–53Locked
  63. 54LESSON
    LESSON 54: Records vs classes — choosing for semantics and performanceLocked
  64. 55LESSON
    LESSON 55: Project: fast text processing with Span<T>/ReadOnlySpan<T>Locked
  65. 56LESSON
    LESSON 56: Project: an event pipeline on Channels with cancellationLocked
  66. 57LESSON
    LESSON 57: Project: a mini-DSL with records + pattern matchingLocked
  67. 58LESSON
    LESSON 58: In-Memory Serialization with a Custom JsonConverterLocked
  68. 10QUIZ
    Quiz 10: applying knowledge from lessons 54–58Locked
  69. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status