Digests » 374

sponsor

Permission-Based Security for ASP.NET Web APIs

Checking user permissions allows you to have more control over access to your ASP.NET Web API. Learn how to do it with Auth0.

this week's favorite

Try the new System.Text.Json source generator

In .NET 6.0, we are shipping a new C# source generator to help improve the performance of applications that use System.Text.Json. In this post, I’ll go over why we built it, how it works, and what benefits you can experience in your application.

How to parse HTML in .NET

HTML parsing is a vital part of web scraping, as it allows convert web page content to meaningful and structured data. Still, as HTML is a tree-structured format, it requires a proper tool for parsing, as it can't be property traversed using Regex.

How to properly use IAsyncDisposable in C#8

C# 8 was a great update for the language, with a lot of new key functionalities for developers to work with. However, with big hitters like nullable reference types and IAsyncEnumerable, there were also a lot of features which fell under the radar.

Enums in C#: Hidden pitfalls

C# has low barriers to entry and forgives a lot. Seriously, you may not understand how things work under the hood but still write code and remain easy-going about this. Though you still have to deal with different nuances over time. Today, we'll look at one of such subtle aspects - handling enumerations.

Speed up your .NET development with Hot Reload in Visual Studio 2022

With the recent release of Visual Studio 2022 Preview 2 we’d like to use this blog post to dive deeper into the brand-new Hot Reload experience which works for both managed .NET and newly supported native C++ apps.