IEquatable<T>
can be sealed
.TryAdd
to safely add keys to a Dictionary<K, V
>if
-else
instead of a switch
statement when having 2 or fewer cases.TryParse
over .Parse
when converting types..
over Substring
using
statement as using
declarationAttribute
suffix is redundant when using an attributeJustification
value in SuppressMessage
attributereadonly
CultureInfo
parameter when possiblein
, out
or ref
should always be placed after all the required parametersnamespace
s instead of typical namespace
sif
statement can be rewritten using the ternary operator