One thing that bothers me when debugging an app in Visual Studio is to get the values of an IEnumerable. For example, when you have a code like this one: var people…
Tag: Visual Studio
Developing for Linux in Windows with C#
Once there was a time where Microsoft and Linux were enemies and who was developing in Windows didn’t develop for Linux and vice-versa. Time has passed and things have changed. And how…
Mocking non-virtual methods of a class
Introduction Usually I use interfaces for my unit tests. This is a good practice, and should be followed when possible. But, last week I was testing some legacy code, which had no…
Data Breakpoints in VS 2019 and .Net Core 3.0
One thing that comes to me sometimes when I am debugging a program is to see a variable that has changed value, but I don’t know where and when it was changed….
Cleaning your code with VS 2019
One book that I recommend the reading is Clean Code, by Robert Martin. It is a well written book with wonderful techniques to create better code and improve your current programs, so…
XAML edit and continue
One of the features I really like in Visual Studio while I am developing is the Edit and Continue feature. Just add a breakpoint in the code, edit the code and maybe…
Multi Instancing in UWP
One thing that went unnoticed in the last post is that the console app is multi-instance: if you click in the live tile or in the start menu, instead of bringing the…
Writing console apps with UWP
One new feature introduced in the April 2018 Windows 10 update is the possibility of writing console apps using UWP. You could ask "why build an UWP console app if we have…
Fast file enumeration with UWP
Sometimes you need to enumerate the files in a folder and its subfolders and that can be a very long task, especially with large folders. This article will show a fast and…
Creating a UWP project with the Windows Template Studio
Introduction Every journey begins with the first step. But, sometimes, the first step is the hardest to give. Once you started, things fly and everything becomes easier. Starting a new project is…