Generic Attributes in C#

C# 11 and .NET 7 introduce generic attributes. What is an attribute? In this blog post, we will explore the introduction of generic attributes in C# 11 and .NET 7. Before we delve into the specifics of generic attributes, let’s quickly overview the purpose and usage of attributes in defining metadata for types. Attribute Definition … Read more

Creating a .NET Client for Basic Authentication in Web APIs

Introduction In my previous blog post, I demonstrated how to implement basic authentication in a web API using ASP.NET. In this blog post, we will delve into creating a .NET client that utilizes basic authentication to authenticate against the server. While the previous blog post focused on testing the API with Postman, this time we’ll … Read more

Implementing Basic Authentication for Web APIs: A Simple Guide

Introduction When it comes to authenticating users in web APIs, basic authentication offers a straightforward mechanism. In basic authentication, the client, which is an application attempting to access an authenticated web API, must provide the username and password combination in the HTTP header of the HTTP request. On the server side, these credentials are used … Read more

Generic math support in C# 11

C# 11 was released on November 8th along with .NET 7, during the .NET conference, and generic math support is one of the important features that came out with it. Apart from this feature, it came with a lot of performance improvements and new features. In this blog post, I am going to focus mainly … Read more