|Thread based||By creating
||Managed Thread||Expensive, not recommended|
||Thread pool||Widely used, standard, recommended, support cancellation and continuation|
||Thread pool||Widely used, recommended use as much as possible|
|Delegate||By calling Delegate’s
||Thread pool||Less used|
|Event based||By subscribing to the appropriate event and calling the appropriate method||Thread pool||Avoid use as much as possible, not recommended|
|Task based||By creating
||A specified task scheduler||Recommended, supports all features of a thread pool pattern, and has many other features|
||Task based pattern||The new C# 5.0 asynchronous pattern|
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.
Rapidly create Shell Context Menu Extensions using .NET
Converting nearly every type to another type in .NET
“.NET does not provide a generic way for conversions across all types. Even the base types are not handled the same way. And not all possible conversions across the base types are supported. We had a look at the different techniques and ended up with the
UniversalTypeConverter as a generic solution filling the gaps and with some useful options on top.
Maybe, it is a historical thing that
TypeConverter is not used on all types. But this is definitely the way to go if you want to provide your own types being convertible.”
Want to modernize your C# codebase? Let’s continue with methods.
Want to modernize your C# codebase? Let’s start with properties.
Web Development – C# in the Browser with Blazor
#dotnet #csharp #web