I can’t be the only person who hates waiting for the code to compile and run… Especially when I want to test only a small part of it! That’s a total waste of time! But good news everyone, I found a way to run a part of my C# code without building the whole project!
Ctrl + E, E – the magical shortcut!
Ok, so if we want to run just the fragment of our code – this is what we do:
1. Select the fragment of code we want to run. Continue Reading
How many programmers you know use ‘yield‘? Seriously, if you have an occasion, ask them – I’m afraid you will notice a strange thing – everybody heard about it but (almost) nobody (including me) uses it. Time to change it! Why? Because ‘yield‘ was introduced in C# 2.0 (yeeeah, it’s that old!) and can help you get rid of some of the ‘temp’ collections in your code and, what’s more important, it may prevent you from System.OutOfMemory exception. Continue Reading
Configuring an Asp.Net Core MVC is not a problem since Microsoft has come with a great API. It enables storing your key-value pairs in variety of ways, preserving the hierarchical character of your data.
In this post I will focus only on the most popular way of configuring an app. So, let’s talk about… Continue Reading