Async / Await and SynchronicationContext (C# .Net)
Following innocuous looking async / await code will cause deadlock. To understand why, lets go into what await does in the...
Creating and Consuming Async methods (C# .Net)
The code we want to run asynchronously could either be CPU-bound or IO-bound. CPU-bound code keeps the CPU busy, requiring...
Save and Load RichTextBox content in WPF
The content of RichTextBox can be saved to a file (or any other stream) using TextRange class. It supports following...