Best newsletters and posts about invalid enum values tag


Messages

6/5/2023 8:14:30 AM

[New post] Microsoft .NET Code Analysis: Enums Should Always Have a Zero Value

dotNetDave posted: " When reviewing code, one common issue I often encounter is the absence of a default or "not set" value for Enums. This is a crucial consideration in most cases as it
6/27/2023 4:04:44 PM

[New post] Microsoft .NET Code Analysis: Always Add Braces in C#

dotNetDave posted: " Not adding braces {} to if statements can lead to issues and affect code readability. The following code demonstrates a violation of this practice: if (somelist[i] != other.