Tag: dotnet-8
36 posts · Page 1 of 4
2026-01-18 dotnetdotnet-8webview2
An open-source WPF SSH manager shows a practical pattern: xterm.js in WebView2, secrets via DPAPI
SshManager is an open-source WPF SSH manager built on .NET 8. It shows a practical pattern: xterm.js inside WebView2 for terminal rendering, EF Core + SQLite for persistence, and DPAPI for local credential protection.
2024-04-27 dotnetdotnet-8
.NET 8 performance: Dictionary vs. FrozenDictionary
With .NET 8 we are introduced to a new dictionary type which improves the performance of read operations. The catch: you are not allowed to make any changes to the keys and values once the collection is created. This type is particularly useful for collections that are populated on first use and then persisted for…
2023-11-17 mauidotnetdotnet-8
How to: Add AdMob to your MAUI app
Learn how to display AdMob banner ads in your .NET MAUI app on both Android and iOS, with step-by-step setup and platform-specific handler implementations.
2023-11-12 csharpdotnetdotnet-8
C# Randomly choose items from a list
In C#, you can randomly select items from a list using Random.GetItems, a method introduced in .NET 8. Learn how it works with practical examples.
2023-11-08 csharpdotnetdotnet-8
C# Access private property backing field using Unsafe Accessor
Use UnsafeAccessorAttribute in .NET 8 to access auto-generated backing fields of private auto-properties in C# without reflection.
2023-11-06 csharpdotnetdotnet-8
C# ZIP files to Stream
.NET 8 includes new CreateFromDirectory and ExtractToDirectory overloads that let you create and extract ZIP files directly to and from a Stream, without writing to disk.
2023-11-05 csharpdotnetdotnet-8
.NET 8 performance: 10x faster GetGenericTypeDefinition
Benchmarking GetGenericTypeDefinition in .NET 8 vs .NET 7 shows nearly 10x faster performance. See benchmark code and results using BenchmarkDotNet.
2023-11-02 csharpdotnetdotnet-8
C# How to update a readonly field using UnsafeAccessor
Learn how to update a readonly field in C# using UnsafeAccessor, an alternative to reflection without the performance penalty. Available in .NET 8.
2023-11-01 csharpdotnetdotnet-8
.NET 8 Performance: UnsafeAccessor vs. Reflection
Benchmarking UnsafeAccessor vs Reflection in .NET 8. See how UnsafeAccessor achieves zero-overhead performance compared to traditional reflection.
2023-10-31 dotnetdotnet-8
How to access private members without reflection in C#
Learn how to access private members in C# without reflection using the UnsafeAccessor attribute introduced in .NET 8, with zero overhead.