One advantage of the new .NET Core (now .NET) apps is that they are cross platform. Once you create an app, the same code will run on Windows, Mac or Linux with…
Tag: C#
Aspect Oriented Programming with DispatchProxy
Sometime ago, I wrote this article for the MSDN Magazine, about Aspect Oriented Programming and how it could solve cross-cutting concerns in your application, like: Authentication Logging Data audit Data validation Data…
Storing values in the Secret Manager tool
When you are developing a new project and need to store settings for it, the first thing that comes to mind is to use the Appsettings.json file. With this file, you can…
Deleting large emails in GMail with the GMail API
Introduction I am a long time user of Gmail, and I usually don’t delete any email, I just archive the emails after reading and processing them, to keep my inbox clean. Last…
Enumerating Displays in WPF with High DPI
Sometimes, we need to get our display disposition to position windows on them in specific places. The usual way to do it in .NET is to use the Screen class, with a…
Decoupling ViewModels in MVVM with the MVVM Toolkit Messenger
When you are using the MVVM pattern, at some time, you have to send data between ViewModels. For example, a detail ViewModel must tell the collection ViewModel that the current item should…
The MVVM Pattern revisited with the MVVM Community Toolkit 8.0
Sometime ago, I’ve written this article introducing the MVVM Community Toolkit and developing a CRUD application to show how to use the MVVM pattern with the Community toolkit. The time has passed…
Getting Disk information in Windows with C#
There are some times when you need to get the disk information in your system, to check what’s happening, for inventory check, or even to know the free and available space. Getting…
Interactive Notebooks with C#
Sometime ago I posted an article about Dotnet Try. This is a wonderful tool to document your code but, since then, a lot has changed. .NET 6 and C#10 are here, Visual…
Linq improvements in .NET 6
A nice improvement in .NET is the introduction of LINQ, in .NET 4.5. With that, working with data was simplified a lot and, when I go to a language that doesn’t have…