C# 9.0 Records: Immutable Data Types Done Right

Records are C# 9’s most impactful feature. They provide a concise syntax for creating immutable reference types with value-based equality. If you’ve ever written a DTO class with equals, hashcode, and toString – records are about to save you hours of boilerplate. The Problem Records Solve Before records, creating a proper immutable data class required […]

Read more โ†’

Blazor CSS Isolation: Scoped Styles in .NET 5

.NET 5 brings CSS isolation to Blazor, a feature developers have been requesting since Blazor’s inception. If you’ve used Vue’s scoped styles or Angular’s component styles, you’ll feel right at home. CSS isolation ensures that styles defined for a component only apply to that component – no more worrying about global CSS conflicts. How It […]

Read more โ†’

Blazor Component Libraries: Building Reusable UI

Razor Class Libraries (RCLs) allow you to share Blazor components across multiple apps. With .NET Core 3.1 and upcoming .NET 5, they now support including static assets (CSS, JS, images) inside the NuGet package. This guide builds a reusable “Modal” component library. Project Structure Create a new RCL project: Static Web Assets Place CSS in […]

Read more โ†’

.NET 5 Preview: What’s Coming This November

.NET 5 unifies .NET Core and .NET Framework. Here’s what to expect when it releases in November. The Unification One .NET going forward C# 9 and F# 5 Single BCL across all platforms Top-level programs Records and init-only setters Performance Significant perf improvements in GC, JIT, and libraries. ARM64 support improved. References .NET 5 Preview

Read more โ†’