.NET Core – Cross Platform Code

.NET Core is cross platform and in this short post I will describe a simple method to detect the underlying operating system on run-time. There are situations, when we want to run a different piece of code based on the Operating System. This capability could be useful in various scenarios e.g. I wanted to obtain … Read more