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 →Tag: .NET
What’s New in .NET Core 3.0: Complete Overview
.NET Core 3.0 is finally here, and it’s the biggest release yet. Desktop support, C# 8.0, performance improvements—let’s break it down. Major Features Windows Desktop: WPF and WinForms now run on .NET Core C# 8.0: Nullable reference types, async streams, pattern matching gRPC: First-class support for high-performance RPC Blazor Server: C# in the browser (server-side) […]
Read more →Entity Framework Core Migrations: Managing Schema Changes
EF Core migrations track database schema changes alongside your code. Here’s how to use them effectively. Basic Commands Migration File Best Practices Always review generated migrations Test Down() methods Use SQL scripts for production Consider data migrations separately References EF Core Migrations
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 →Becoming a .NET Foundation Member: My Journey
I’m excited to announce that I’ve been accepted as a member of the .NET Foundation! This is a significant milestone in my developer journey, and I wanted to share what it means and how you can get involved. What is the .NET Foundation? The .NET Foundation is an independent organization supporting the open source .NET […]
Read more →Visual Studio 2019 Community Launch – What’s New for .NET Developers
We hosted the Visual Studio 2019 Community Launch event in Letterkenny, and I had the honor of presenting what’s new in C# 8.0 and .NET Core 3.0 (preview). The energy in the room was fantastic! Visual Studio 2019 Highlights The new IDE brings significant improvements: Faster load times: Solution load is noticeably quicker AI-powered IntelliCode: […]
Read more →