Task-based Asynchronous Pattern (TAP) was introduced in .NET Framework 4 and since then, it is the recommended approach to asynchronous programming in .NET.
Event-based Asynchronous Pattern (EAP) is still in use, especially at legacy systems, but for new development is not recommended anymore.
In this post I will show how to wrap EAP into TAP and use more modern approach.
On Android, when pairing with Bluetooth device is in progress, popup form requesting pin is displayed. Everything is ok, except awkward message “Try 000 or 1234”. For some users this is confusing, because they simply type in what pairing popup is suggesting. Of course, pairing fails due to wrong pin entered. Let’s take a look how I fixed this issue.
As of this writing, C# 8 is still in Preview 5, so It’s not 100% clear if all listed features will end up in final release. C# 8 will be probably released at .NET Conf , September 23 — 25, 2019. Nevertheless, let’s take a look at new features of C# 8. List of reported […]