Const strings are not so const after all
We know the const
keyword with strings - but are they really constant after all? Or can we use some tricks to modify them? Let's see.
Hey, I'm Steven a .NET Developer and Freelancer in Zurich, Switzerland. I am a Microsoft MVP. Also, this blog is open source on GitHub.
We know the const
keyword with strings - but are they really constant after all? Or can we use some tricks to modify them? Let's see.
In this blog post, I showcase a very simple lock-free ring buffer for logging. I'll show why it's useful and how it works.
There is a new sheriff in town when it comes to the lock
keyword, And that is the new System.Threading.Lock
type that is introduced in .NET 9. And yes, I know - we still need time to digest the big .NET 8 release.
Only one month after the big release of .NET 8, the dotnet team is already working on the next iteration: .NET 9. With that also comes new language features. The first one is about to be merged into the main development branch: Params Collections.
We made a recent addition to bUnit that we think will make your life easier. We call it bUnit Generators. It's a set of code generators that will help you create stubs for your third-party components.
From time to time, it is nice to store complex objects or lists as JSON in the database. With Entity Framework 8, this is now easily possible. But this was possible all along with Entity Framework 7.
This blog post describes my journey writing a new interceptor for .NET 8. This is not meant as a general tutorial, even though I will showcase some of the code samples.
There are many new cool features with .NET 8 and Blazor in particular. In this blog post, I want to highlight a feature that I believe is very useful in the new context Blazor is living.
The latest version of the .NET (version 8) has introduced a "better" way of logging. This new way of logging is more flexible and enhanced than the previous versions. It is about the LoggerMessageAttribute
.
LINQ (Language Integrated Query) is a powerful feature of C# that allows you to query data from different data sources. It is a must-have skill for every C# developer. That is why I created: https://linqmarbles.info/