1) async / await Use the async / await-pattern to allow unblocking of the UI / current thread when execution blocking operations. The async /…
A problem that can occur when creating unit tests is that you’ve got a private set:er for a property that you need to write data…
Once you’ve started working with unit testing, chances are that you never want to work without it again. I find that the biggest benefit is…
A few features of the enum concept in C#… Create enum public enum Names { Robert, //Will get 0 as value Julia, //Will get 1…
Let’s say that you need to implement an interface that contains an (async) method returning Task<T>: public interface IGetInt { Task<int> GetIntAsync(); //… } But…
Exception filters was added in C# 6 and is a nice feature that lets you decide weather to actually catch an exception or not. The…
Enum in C# is a powerful construct. And besides its standard use It can also be used as a bit field / flags. The purpose…