Steve Fenton

This is just a quick note about some new features in Microsoft Teams. The wrapper feature is part of Microsoft Viva and is called “Insights”. Once you add it, you’ll have a new tab in Teams that has a few tools to boost your life. There are tools to track your emotional awareness, which keeps […]

C# Namespace Declarations

Unlike my recent article on Global Using Statement and Code Clues, the new namespace declarations have no trade offs and you should just auto-fix them in your whole project and move on with your life. Here’s how we do namespace before namespace declarations: namespace Fenton.Sample.UI { public class Example { } } …and here is […]

Stripping Times from Dates in C#

This is a surprisingly common problem in C#, where you need to take a DateTime and strip off the “time” bit to leave you with a representation of a day. Currently, you can do it by creating a new DateTime and passing only the parts you want to keep, like year, month, and day. DateTime […]

Type Coercion vs Type Conversion

The key difference between type coercion and type conversion is that type coercion is always implicit, whereas type conversion can be either implicit or explicit. In other words, “type conversion” refers to the general process of changing a type, whereas type coercion refers more specifically to the implicit conversion of a type. We can further […]