Logs are important, and Serilog makes it easy. Unfortunately, not all log records are created equal, resulting in a more challenging time for developers to debug an application. In a world where software development is crucial for the world to be fully functioning, logging often takes a backseat to unit
Tired of generating manual dummy/demo data? With Bogus, you can create realistic dummy data automatically without having to write thousands of lines of code with seed data.
Learn how to connect a PostgreSQL database with a .NET 6 App using Entity Framework Core in a few easy steps.
Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this tutorial about reflection in .NET I will break it down into human-readable content with examples.
Subscribe to premium TWC
Support Tech with Christian and get access to all premium content and enjoy reading without any distractions like ads
This is not a new feature, pattern matching in switch statements has been around since C# 7.0. I got a question the other day from a co-worker about how I would do pattern matching when working with a switch. I told him to consider it a mix of a
A tuple is a lightweight data structure that provides concise syntax to group multiple data elements. In this article, I will show you how to work with a C# tuple. Ever been in need to pass multiple values around at the same time? By using a C# Tuple we can
Working with IOptions<> in .NET for the configuration of the application. In almost any project or application you will have some kind of settings that would need to be configured and often changed depending on the environment you are running the application within. This could be user secrets, default settings,
How can we use XML with C#? Let’s start off with what is XML? It is short for eXtensible Markup Language. It is a simple text-based format for representing structured data/information. XML is used in documents, data, configurations, books, transactions, invoices, purchase orders, orders, communication between applications, etc…