Ryan Miranda

MY ARTICLES:

Discriminated Unions in C# With OneOf

Discriminated Unions in C# With OneOf

In this article, we will look at the usage of discriminated unions in C#, specifically with the open-source library OneOf. We'll go into some practical examples and why this pattern is becoming increasingly popular in .NET applications today. [sc name="github"...

Output Caching in ASP.NET Core

Output Caching in ASP.NET Core

In this article, we are going to discuss how to implement Output Caching in ASP.NET. Output Caching is a first-class feature in ASP.NET Core 7. Previously we needed to implement these features ourselves, so it's beneficial that Microsoft has now built this...

How to Test a REST API with .NET and xUnit

How to Test a REST API with .NET and xUnit

In this article, we are going to cover how and why we should test a REST API with .NET and xUnit. We'll discuss why this is important, and how to actually test various components of an API response to ensure requirements are being met. [sc name="github"...

DateOnly and TimeOnly in C#

DateOnly and TimeOnly in C#

In this article, we are going to explore DateOnly and TimeOnly in C#, see what functionality exists for both, and help decide when to use one or the other. When it comes to dates and times in C#, for the longest time we have been stuck with the DateTime struct, to...

Records in C#

Records in C#

In this article, we are going to discuss a new feature added in C#9, called "records". Records offer an alternative to classes and structs and offer a number of advantages over those types that we'll cover in this article. [sc name="github"...