C# 8.0 Features: Nullable Reference Types Explained

Nullable reference types are the biggest C# 8.0 feature. They help eliminate null reference exceptions at compile time. Here’s how they work. Enabling Nullable The New Syntax Null Forgiving Operator Benefits Compiler warnings for potential null dereferences Documentation of intent in method signatures Catches bugs before runtime References Nullable Reference Types

Read more โ†’

Azure Key Vault: Secrets Management for Applications

Stop putting secrets in config files. Azure Key Vault centralizes secret management with proper access control and auditing. Create Key Vault Add Secrets Access from .NET Best Practices Use Managed Identity for Azure services Enable soft-delete and purge protection Rotate secrets regularly Audit access logs References Key Vault Documentation

Read more โ†’

Mediator Pattern in C#: Implementing with MediatR

MediatR implements the mediator pattern in .NET, decoupling request handling from the caller. It’s become my go-to for organizing application logic. Setup Request and Handler Using in Controller Benefits Decoupled handlers – easy to test Pipeline behaviors for cross-cutting concerns Clean controller actions References MediatR GitHub

Read more โ†’