C# Tip: Exception handling with WHEN clause
Instead of using if-else or switch blocks to handle exceptions, you can do it gracefully using the 'when' keyword

Search for a command to run...
Series
Instead of using if-else or switch blocks to handle exceptions, you can do it gracefully using the 'when' keyword

What can you do if you need to temporarily change the CurrentCulture in C#?

We all need to parse strings as integers. Most of the time, we use int.TryParse(string, out int). But there's a more advanced overload that we can use

It would be great if we could break the debugging flow if a condition is (not) met. Can we? Of course!

In C#, ExpandoObjects are dynamically-populated objects without a predefined shape. dynamic myObj = new ExpandoObject(); myObj.Name ="Davide"; myObj.Age = 30; Name and Age are not part of the definition of ExpandoObject: they are two fields I added ...

You may have to reference classes or services that come from different namespaces or packages, but that have the same name. It may become tricky to understand which reference refers to a specific type. Yes, you could use the fully qualified name of t...
