Skip to main content
Declarative validation for Roslyn symbols. Accumulates violations as diagnostics.

The Problem

Validation code gets verbose:

The Solution

SemanticGuard<T> provides fluent validation:

Creating Guards

Method Validations

Type Validations

Generic Validations

Pattern Matching Integration

Combine with Match.*:

Converting to Flow

Complete Example