Best .NET Posts This Week: 14th March 2021
Tags: dotnet, csharp, api, newsletter
Published: 2021-03-14 15:40:11

---
title: Best .NET Posts This Week: 14th March 2021
published: true
description: Here are some of the best .NET, C# and ASP NET posts from this week.
tags: dotnet,csharp,apis,newsletter
cover_image: https://cdn.hashnode.com/res/hashnode/image/upload/v1615736166240/eVIkX3pvp.png
canonical_url: https://samwalpole.com/best-net-posts-this-week-14th-march-2021
---

Here are some of the best .NET, C# and ASP NET posts from this week.

# This Weeks Articles
## [Pattern Matching In C#](https://www.c-sharpcorner.com/article/pattern-matching-in-c-sharp/)
By Munib Butt
> In today’s article we will look at pattern matching in C#. This is a way to match certain members in our objects or the objects themselves to certain conditions and values. This is an especially useful technique to make our code more concise and readable. We will look at several different patterns for matching.

<a href="https://www.amazon.co.uk/NET-Cross-Platform-Development-intelligent-Framework/dp/180056810X?dchild=1&keywords=c%23&qid=1615736054&sr=8-3&linkCode=li2&tag=samwalpole-21&linkId=f9771073198e52702683963271be0e07&language=en_GB&ref_=as_li_ss_il" target="_blank"><img border="0" src="//ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=180056810X&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=samwalpole-21&language=en_GB" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=samwalpole-21&language=en_GB&l=li2&o=2&a=180056810X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

## [Learn to build HTTP APIs with .NET](https://devblogs.microsoft.com/dotnet/learn-to-build-http-apis-with-net/)
By Jon Galloway
> ASP.NET makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. Whether you’re new to .NET or an old pro, we’ve got a lot of fresh videos, tutorials, and documentation to help you learn how to build great HTTP APIs.

<a href="https://www.amazon.co.uk/Hands-RESTful-Services-ASP-NET-Core/dp/1789537614?dchild=1&keywords=asp+net&qid=1615736065&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyUjQ2RVVOWjBZT1IwJmVuY3J5cHRlZElkPUEwMTg4MDI5VTI2VzVCRzcxWk9LJmVuY3J5cHRlZEFkSWQ9QTAzNzUwMTEyVTRIMjRIUkhBRkRVJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ%3D%3D&linkCode=li2&tag=samwalpole-21&linkId=86a18d95881aa8eb31fd5d3811994c7b&language=en_GB&ref_=as_li_ss_il" target="_blank"><img border="0" src="//ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1789537614&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=samwalpole-21&language=en_GB" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=samwalpole-21&language=en_GB&l=li2&o=2&a=1789537614" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

## [Crossing the Generics Divide](https://jimmybogard.com/crossing-the-generics-divide/)
By Jimmy Bogard
> Generics are great, until they aren't, and when they aren't is when you don't know the type at compile-time but at runtime. This isn't necessarily a bad thing, and isn't necessarily a design problem. Remember, void Main is not generic, so at some point, your program needs to cross the generic divide. Sometimes, this is explicit (you instantiate an object of a closed generic type) or implicit (you use a DI container to inject a closed generic type).

# You Might Also Like
- [A Cure for Primitive Obsession](https://samwalpole.com/a-cure-for-primitive-obsession)
- [A Brief Introduction to F# for Object Oriented Developers](https://samwalpole.com/a-brief-introduction-to-f-for-object-oriented-developers)

I post mostly about full stack .NET and Vue web development. To make sure that you don't miss out on any posts, please follow this blog and [subscribe to my newsletter](https://samwalpole.com). If you found this post helpful, please like it and share it. You can also find me on [Twitter](https://twitter.com/dr_sam_walpole).