Home Blog
Save Resources Using CancellationToken In ASP.NET Core API
In this article, we are going to explain what is CancellationToken and the way to implement it in your Asp.Net Core APIs.What is CancellationTokenIf I want to put it in one sentence, CancellationToken...
How to Use Records in C# – Part 2
C# 9 introduced records to the language, I have explained what a record is and how to use it in my previous article How to Use Records in C# - Part 1. If you...
How to Use Records in C# – Part 1
With C# 9, we had record types introduced to the language, later the record types had some changes in C# 10 which I will explain later in another article.What's the Record TypeRecord is...
Exploring the Exciting New Features of C# 12
In the C# 12 Preview, several new features have been added to the language. This article will take a look at these features and examine how they can be helpful for us in the...
C# Switch Statements – Traditional vs. Expressions
Microsoft introduced a more concise and readable syntax for switch expression in C# 8.0, enhancing code clarity and efficiency. In this post, I'd like to compare the new expression syntax to the traditional version...
Building a C# and ChatGPT Translator with Minimal Code
In the recent few months, ChatGPT has become very famous and everyone is talking about it. So, I finally decided to play with the API they provide and see what I can build with...
Dapper vs. Entity Framework: Choosing the Right ORM for Your .NET Project
When it comes to Object-Relational Mapping (ORM) in .NET, there are two popular options that are usually considered. Dapper and Entity Framework both let developers work with data in an object-oriented way, but they...
5 Reasons Why ASP.NET Core Is a Top Choice for Web Development in 2023
ASP.NET Core is the latest Microsoft solution for web-based applications, It's an open-source project which gained enough popularity among developers. It offers many benefits for developers looking to build modern, scalable, and secure applications....
How to Enable the Inline Hints for Visual Studio 2022
You need to do the following steps to enable the Inline Hints:Go to Tools > Options > Text Editor > C# > Advanced.Check the Display inline parameter name hints checkbox.Check the Display inline...
5 Bad Practices to Avoid in C#
In this post, I want to give 5 little examples of bad practices in C# and what can be done instead to improve your code a little bit. If you are an intermediate C#...