A Guide to Use Configuration in .Net Core Console Application

When working with .NET Core console applications, you may often need to store settings such as connection strings, API keys, or custom values. In .Net framework, the app.config file gets included automatically. While in .Net core you need to perform couple of steps to use the application configurations. In this post, I’ll walk you through … Read more

How to create nuget package – Step by Step Guide

If you’re building reusable components in .NET, one of the best ways to share them, across multiple projects or with the community, is by creating a NuGet package. Whether you want to publish your package to nuget.org or use it privately within your team, this guide will walk you through the complete process of creating … Read more

Most Common Mistakes Developers Make in LINQ (and How to Avoid Them)

Language Integrated Query (LINQ) is one of the most elegant and powerful features in C#. It allows you to query collections, databases, XML, and more with concise, readable syntax. But as many developers quickly learn — just because LINQ looks simple doesn’t mean it’s foolproof.Subtle mistakes can cause performance issues, unexpected results, or even runtime … Read more

What’s New in C# 6.0

Introduction C# 6.0, released with Visual Studio 2015 and .NET Framework 4.6, brought several small but powerful features that made code more concise, readable, and expressive. While these weren’t groundbreaking syntax changes, they were aimed at improving developer productivity and reducing boilerplate code. In this post, we’ll go through all the key features introduced in … Read more

Building Custom Action Filters in ASP.NET MVC

ASP.NET MVC gives you a clean separation of concerns — but sometimes, you’ll need to execute certain logic before or after a controller action runs. For example: Instead of repeating the same code in every controller, Action Filters let you inject that behavior globally, per controller, or per action. In this post, we’ll explore what … Read more

Use of Tuple in C#

When writing C# code, we often need to return multiple values from a method. Traditionally, we might create a custom class or struct, or use out parameters. However, since .NET Framework 4.0, we have another option — tuples. Tuples provide a lightweight way to group multiple values into a single object without creating a new … Read more

Async Await in C#

As developers, we often write code that performs tasks like calling APIs, reading files, or querying databases. These operations take time — and if we wait for them to complete before doing anything else, our applications can freeze or feel sluggish. That’s where asynchronous programming in C# comes in. It allows your code to continue … Read more