Here’s the umbrella of .NET 5 to the rescue. It’s a MAJOR change because of the following reasons:
As the first part of this unification scheme, Microsoft’s Xamarin mobile development platform will switch from using the Mono BCL to join other components leveraging the .NET Core BCL. With that move, Xamarin mobile development will be folded into .NET 5. That means that for the first time, one BCL-based framework will handle all app models:
- ASP.NET Core
- Entity Framework Core
Wait, WPF and WinForms made it into .NET 5? Yes, it’s true. Hello there, old friends! Nice to see them included in this runtime. The idea of using one SDK to build apps with is pretty exciting stuff, if you ask me.
Source: The Most Exciting Promise of .NET 5 | Okta Developer
Source: Blazor’s Future: gRPC Is Key — Visual Studio Magazine
Probably the most impactful feature of C# 8.0 is Nullable Reference Types (NRTs). It lets you make the flow of nulls explicit in your code, and warns you when you don’t act according to intent. The NRT feature holds you to a higher standard on how you deal with nulls,
Source: Embracing nullable reference types | .NET Blog
Implementing full list support over custom data structures in .NET
Source: Proper List Support in C# – CodeProject
.NET Core will become the successor to .NET, which will bring lots of upsides and few gotchas along the way as .NET Framework is shelved.
Source: .NET is Dead, Long Live .NET
System .Threading .Thread instance
||Expensive, not recommended
BeginXxx method with a user callback; calling
EndXxx inside that user callback
||Widely used, standard, recommended, support cancellation and continuation
||Widely used, recommended use as much as possible
||By calling Delegate’s
EndInvoke instance methods
||By subscribing to the appropriate event and calling the appropriate method
||Avoid use as much as possible, not recommended
System .Threading .Tasks .Task instance
|A specified task scheduler
||Recommended, supports all features of a thread pool pattern, and has many other features
async method and
|Task based pattern
||The new C# 5.0 asynchronous pattern
Read more in The Asynchronous Programming Models (C# 5.0 Series) at CodeProject
Try out Nullable Reference Types With the release of .NET Core 3.0 Preview 7, C# 8.0 is considered “feature complete”. That means that the biggest feature of them all, Nullable Reference Types, is also locked down behavior-wise for the .NET Core release.
Source: Try out Nullable Reference Types | .NET Blog
Rapidly create Shell Context Menu Extensions using .NET
Source: .NET Shell Extensions – Shell Context Menus – CodeProject
Are you storing passwords in your source code? Don’t!
How to set up and use an Azure key vault to store your secret values.
Source: How to Use Microsoft Azure Key Vault – CodeProject
Want to modernize your C# codebase? Let’s continue with methods.
Source: Modernize Your C# Code – Part II: Methods – CodeProject