• Asynchronous Programming in C#

    Asynchronous programming causes a lot of confusion because the documentation is a bit lacking and this results in awfully bad implementations. This post compiles my research on this subject so you’ll see lots of quotes from various sources (official and trusted third parties).

    Read on →

  • Asynchronous programming in C# with WPF

    I know nothing about the Task Parallel Library and writing a blog post about this is a great opportunity to learn about it. This post won’t be exhaustive: I’ll just explore Microsoft’s recommended way of implementing asynchronous programming.

    Read on →

  • Executing the right project in Visual Studio

    Often, when you’re working you want to quickly open a file, edit that and run it so you can test it. What happens when you press F5 in Visual Studio is that it will start some other project (when you have a solution with more than 1 project). In this post you’ll learn a simple trick that allows you to start the project where the file you just edited is.

    Read on →

  • C# Reflection API

    In this post we’re going to see how to dynamically get the value of a property by using only its name. This started from me trying to understand how data binding works in XAML and implementing it myself. For this, I needed a view model which implements the INotifyPropertyChanged and then subscribe to its PropertyChanged event.

    Read on →

  • StringFormat in XAML

    In an usual application sometimes you need to “adapt” the values from the view model. This is normally done using StringFormat, but we’ll see some other options as well.

    Read on →