Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Course

C# 14 Generics, Iteration, and State Management

Backend code shouldn't repeat itself. This course will teach you how to apply C# 14's generics, custom iterators, pattern matching, and Option types to remove boilerplate and write cleaner, reusable, and type-safe, null-safe code.

Intermediate
2h

Created by Almir Vuk

Last Updated Sep 23, 2026

Course Thumbnail
  • Course

C# 14 Generics, Iteration, and State Management

Backend code shouldn't repeat itself. This course will teach you how to apply C# 14's generics, custom iterators, pattern matching, and Option types to remove boilerplate and write cleaner, reusable, and type-safe, null-safe code.

Intermediate
2h

Created by Almir Vuk

Last Updated Sep 23, 2026

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Real-world backend code is full of repeated patterns: helper methods that differ only by type, nested loops with awkward break-out logic, tangled state-checking switch statements, and defensive null checks scattered through every layer. In this course, C# 14 Generics, Iteration, and State Management, you'll gain the ability to apply C#'s advanced language features to eliminate that boilerplate at the algorithm and class level. First, you'll explore advanced iteration techniques and generic algorithms with constraints, replacing duplicated code and clumsy nested loops with reusable, type-safe building blocks. Next, you'll discover how to model state and control flow concisely with pattern matching, switch expressions, and property and positional patterns, and how to optimize objects with Lazy, ValueTuple, and clean object-to-object mapping using C# 14 extension members. Finally, you'll learn how to eliminate null-reference risks using the Null Object pattern and a custom Option type, replacing defensive null checks with safer, more expressive code. When you're finished with this course, you'll have the skills and knowledge of C# 14's advanced features needed to write more reusable, expressive, and null-safe code in your everyday backend work.

C# 14 Generics, Iteration, and State Management
Intermediate
2h
Table of contents

About the author
Almir Vuk - Pluralsight course - C# 14 Generics, Iteration, and State Management
Almir Vuk
0 courses 0.0 author rating 0 ratings

Almir Vuk is a Solution Architect, Microsoft MVP and Microsoft Certified Trainer with a career built at the intersection of technical depth and community impact. A well-known and trusted voice in the regional .NET scene, he speaks across the full stack, architecture, cloud-native systems, Azure, and .NET MAUI. Always with one foot in theory and the other in production reality. As .NET Lead Editor at InfoQ, he connects the developer community with the ideas that matter most. Off stage, he runs, plays chess, and enjoys sightseeing nature.

2025 Forrester Wave™ names Pluralsight as a Leader among tech skills dev platforms

See how our offering and strategy stack up.

forrester wave report