.NET 5 is the fastest .NET version ever releases. The engineering team has gone through the runtime and libraries with a fine-toothed comb, optimizing everything from the impacts of the Garbage Collector (GC) to the internals of List<T>. Let’s look at the numbers. TechEmpower Benchmarks In the TechEmpower benchmarks (Round 19/20), .NET 5 performs exceptionally […]
Read more โTag: .NET
.NET 5 is Here: The Complete Migration Guide
The wait is over. .NET 5 has officially been released, marking the beginning of the unified .NET platform. This isn’t just another version update; it’s the convergence of .NET Core and .NET Framework into a single, cohesive platform. If you’re running .NET Core 3.1, the upgrade path is straightforward, but substantial. The Vision: One .NET […]
Read more โgRPC-Web: Bringing gRPC to Browser Applications
gRPC-Web enables browser clients to call gRPC services. This is particularly exciting for Blazor WebAssembly, where you can now use the same strongly-typed gRPC contracts on both server and client. Let’s explore how to set this up with .NET 5. Why gRPC-Web? Standard gRPC requires HTTP/2 with trailers, which browsers don’t fully support. gRPC-Web overcomes […]
Read more โC# 9.0 Init-Only Setters: Immutable Object Initialization
Init-only setters in C# 9 solve an age-old problem: how do you create immutable objects while still using the convenient object initializer syntax? Previously, you had to choose between constructor-based initialization (verbose) or public setters (mutable). Init-only setters give you both convenience and immutability. The Problem The Solution: Init-Only Setters Init in Derived Classes Init-only […]
Read more โ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 โ