- C# Digest
- Posts
- There Is No Thread
There Is No Thread
#446 – March 20, 2023
This is an essential truth of async in its purest form: There is no thread.
Async/await was added to the C# language over a decade ago and has transformed how we write scalable code for .NET. But how does it really work? In this post, we take a deep dive into its internals.
Solving Deserialization issues in .NET when it comes to JSON HTTP APIs and responses.
In this blog post we will discover how to write your own small task scheduler / job scheduler with cron notation in ASP.NET Core. You might know similar approaches under the name of Quartz or Hangfire.
The yield keyword informs the compiler that the method in which it is used, is an iterator block over collection. An iterator block returns the IEnumerable as the output And the yield keyword is used to return values for the IEnumerable.
The route, the headers and the specific JSON returned by an HTTP API are the contract, and thus should be treated as such.
Check out March 2023 updates for .NET 7.0. and .NET 6.0.
If you are a game developer, a mobile developer, or are interested in learning new tricks to better debug your code, check out this latest release.