URI Encode and Decode in .NET
In this article, we are going to learn about URI encode and decode and how we can achieve this using .NET. So, let's start. What is URI...
MY ARTICLES:
In this article, we are going to learn about URI encode and decode and how we can achieve this using .NET. So, let's start. What is URI...
In this article, we'll dive into one of the cool new features of C# 9.0: the Init keyword. First, we'll take a closer look at what this feature is. Then, we'll explore how the Init keyword works and how we can incorporate it into our projects. or MemoryStream can be problematic and discuss the benefits of using streams instead. By leveraging streams, we can significantly...
If we are looking for a way to get the size of a data type in C#, mastering the sizeof() operator is just what we need. This operator returns the accurate memory size that any data type occupies. In this article, we will dive into understanding how to use this...
In this article, we will learn what is a remote host IP address and explore different ways to extract it in ASP.NET Core Web API. Let's start....
In this article, we are going to talk about how to store data in the JSON entity field using Entity Framework Core. But before we start, we...
In this article, we'll explore the capabilities of the MoreLINQ library, which enables us to improve the already robust LINQ functionality. Let's...
In this article, we will review multiple ways of performing fast inserts of bulk data into a database using the Entity Framework (EF for short). Entity Framework "classic" was introduced in 2008, was superseded nearly a decade later by EF Core, and continues to add...
In this article, we will learn how to run an async method synchronously in .NET. Let's start. Different Ways We Can Run Asynchronous...
ASP.NET Core is a powerful and flexible platform for building web applications. It supports multiple data formats, including JSON and XML, and provides many tools for serialization and deserialization. In this article, we will focus on how to return XML from ASP.NET...
In this article, we are going to look at what exactly short circuit evaluation is in C# and how asynchronous calls are affecting it. [sc name="github" url="https://github.com/CodeMazeBlog/CodeMazeGuides/tree/main/async-csharp/ShortCircuitEvaluationWithAsyncAwait"...
When authorizing requests in ASP.NET Core Web API projects, it's not enough to know the endpoint and the user; we also need to be aware of the specific resource the user is trying to access. In this article, we will learn how to tackle these situations using...
In this article, we are going to learn how to perform property ordering within JSON serialization using the two most famous JSON libraries for .NET. The libraries are System.Text.Json, which has been natively available in the framework since .NET Core 3.0, and...
In this article, we will learn what is an aggregate in Domain-Driven Design. We will get to know which are the main design principles behind it. We will, also, design and implement a simple use case using these principles and learn how to organize business logic and...
In this article, we will cover different ways to split a string in C#. As developers, we might often need to split strings into smaller substrings based on certain delimiters. C# provides us with the Split method, which is part of the String class. [sc name="github"...
Upcasting and downcasting are important concepts in C# programming that allow us to convert an object of one type to another type. These concepts are essential to work with polymorphism and object-oriented programming. In this article, we will explore how upcasting...