nameof get's a bit better in C# 12
The nameof
operator is a great way to get the name of a variable, type, or member. With C# 12 it's getting even better. Let's see how.
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.
The nameof
operator is a great way to get the name of a variable, type, or member. With C# 12 it's getting even better. Let's see how.
TryGetNonEnumeratedCount
attempts to determine the number of elements in a sequence without forcing an enumeration. It returns true
if it could and false
if it couldn't. The API was added with .NET 6 - let's have a look at how that thing works.
I did already write about some useful extension methods for Task
and ValueTask
. Today I want to show you some useful extension methods for IEnumerable
.
In this blog post, we will explore some cool things you can do with ValueTuple
. Also, a short explanation of what ValueTuple
is and how it works.
In this article, I will talk about my journey to becoming a Microsoft MVP. I will talk about the process, the requirements, and the benefits of becoming a Microsoft MVP. Of course, this is my personal experience and journey, so mileage may vary.
In Entity Framework 7, the team has added support for ordered indexes to the fluent API. In this blog post we will look at how to use this feature and what it means for your database.
In this blog post, we will have a look at the different log levels and how to control them.
Microsoft's integrated dependency injection (short DI) container is very powerful, but there are also certain pitfalls. In this article, I will show you what some of the pitfalls are and how you can verify them.
In this small blog post, I will show you how to create your own Validation attribute in ASP.NET Core to tailor-made your validation rules.
In this blog post, we will discuss the "Unit of Work" pattern and how it can be used to implement domain events in a DDD application. For that, we will also discuss how we can leverage middleware to implement the "Unit of Work" pattern in a .NET application. A lot of things are going to happen in this blog post, so let's get started.