NEVER Miss Guard Clauses Again – Here’s How! | C#, DotNet

Published: 04 October 2024
on channel: About Clean Code
2,893
82

Tired of missing or skipped guard clauses? This video walks you through building a Roslyn code analyzer that automatically detects missing guard clauses in constructors — and even generates them for you with a code fixer!

You’ll learn:

How to create a .NET code analyzer that enforces guard clauses.
Using Design by Contract to fail fast and improve code safety.
Implementing a Roslyn CodeFixProvider to auto-generate missing guards.
Supporting batch fixes with a custom FixAllProvider.
Enforcing guard rules across projects with compiler errors instead of warnings.

📌 Code analyzer developed in this tutorial: https://github.com/plainionist/GuardC...
📌 Design-by-Contract utility used: https://github.com/plainionist/AboutC...
📌 Sample project: https://github.com/plainionist/AboutC...


Watch video NEVER Miss Guard Clauses Again – Here’s How! | C#, DotNet online without registration, duration hours minute second in high quality. This video was added by user About Clean Code 04 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,893 once and liked it 82 people.