Generate Images in C# Using SkiaSharp
In this article, we will learn about generating images in C# using SkiaSharp. Let's dive in. What is SkiaSharp? The SkiaSharp...
Code Maze Weekly #212
Issue #212 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Choosing Between Conditional Statements – If, Switch, and Switch Expression Performance in C# [dotnettips.wordpress.com] An age-old question - which one is...
Generate Images in C# Using ImageSharp
In this article, we will learn about generating images in C# using ImageSharp. Let's get started. What is ImageSharp? ImageSharp...
Generate Images in C# Using ImageMagick
In this article, we will learn about generating images in C# using ImageMagick. Let's dive in. What is ImageMagick? ImageMagick...
Using Kafka in an ASP.NET Core Web API
At its core, Kafka is a distributed streaming platform designed to handle large volumes of data in real-time. Its exceptional performance, fault tolerance, and scalability make it a pivotal component in event-driven architectures. If you rely on Azure Blob in your projects, here's an excellent article by...
How to Create a Zip File in Memory In C#
In this article, we will look at how we create In-Memory Zip files in C#. Previously, we discussed how to create and read Zip files in .NET in our Working With Zip Files in C#/.NET article, so we recommend taking a look at that to familiarize yourself with working...
How to Show the Generated SQL Query in EF Core
Entity Framework Core has many useful features, and in this article, we will see how to use it to show a generated SQL query. EF Core is an open source Object-relational mapper that supports several databases like SQLite, PostgreSQL, MySQL, and also LINQ (Language...
HSTS Header Implementation in ASP.NET Core
In this article, we are going to learn how to implement the HSTS header in ASP.NET Core applications. So let's get going. What Is HSTS HTTP Strict...
How to Build a URL Shortener in .NET Applications
When working with URLs in our applications, there are times when they may become too long, clunky, unreadable, and difficult to use. In such situations, we can employ a URL shortener to make them shorter, more readable, and easier to share. Essentially, a URL...
Built-In Rate Limiting in ASP.NET Core Web API
In this article, we’re going to discuss Rate Limiting in ASP.NET Core, specifically version 8, and explore some ways of implementing it. So,...
Represent the Relationship of Properties Using Property Mappings From AutoMapper
In this article, we'll take a look at what property mappings are and how to retrieve them from AutoMapper. AutoMapper is a free .NET library that streamlines object mapping, reducing manual coding to boost development speed and minimize the risk of errors....
Better Minimal APIs Endpoint Organization With Carter in ASP.NET Core
In this article, we'll look closely at the Carter library and how we can use it in our ASP.NET Core projects. Let's get started! What...
Code Maze Weekly #210
Issue #210 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks Computing code coverage for a .NET project [www.meziantou.net] Computing code coverage without any dependencies is now possible in .NET. Check this article by...
How to Check the Total Number of Items Defined in an Enum
In this article, we talk about enums and, more specifically, how to find the total number of items defined in the enum. But first of all, let's define an enum. [sc name="github"...
Baseline Styling in BenchmarkDotNet
In this article, we will learn how to set a baseline for our benchmark in BenchmarkDotNet and discuss styling the baseline results. As software developers, benchmarking the performance of our methods is a crucial part of our day-to-day activities. With the...
The Difference Between Invariance, Contravariance and Covariance in Generics in C#
In this article, we will explore the role, significance, usage, and impact of invariance <T>, contravariance <in T> and covariance <out T> in our C# generics programming. Generics in C# enable us to design flexible, reusable classes and methods,...
Introduction to Strawberry Shake and GraphQL in .NET
In this article, we'll get familiar with GraphQL and Strawberry Shake, a GraphQL tool that facilitates interaction with local and remote data. Subsequently, we will build an application using the .NET API, focusing on customers searching for available space in...
How to Use HttpOnly Cookie in .NET Core for Authentication and Refresh Token Actions
In this article, we will show you how to use HttpOnly Cookie in .NET Core apps to secure our JWT or JSON Web Tokens, when implementing the authentication and refresh token actions. [sc name="patreon-source-code"...
Fastest Way to Find and Extract a Number From a String in C#
This article will explore the quickest method to find and extract a number from a string in C#. We will discuss and implement different techniques for accomplishing this task. Subsequently, we will evaluate the performance of these techniques using the BenchmarkDotNet...