DateTimeProvider for unit testing
When writing unit tests, you probably met with the question of how to test the method, the calculation of which is dependent on DateTime.Now. DateTime.Now always returns a new value...
Deconstructors for non tuple types in C# 7.0 (SK)
O tupple a o tom ako ich rozložiť v C# 7.0 sa popísalo veľa. Napríklad … Táto funkčnosť je super. Málokto však vie, že je možné rozkladať aj štandardné triedy,...
Deconstructors for non tuple types in C# 7.0
There are a lot of articles about tupple and how to deconstruct them. See example This funcionality is great. However, only a few knows that even class can be deconstructed,...