FlagsAttribute
Good grief, here's one that passed me by.
Oftentimes, I'll define an enumeration designed for bitwise operations, e.g.
enum OperationType
{
Insert = 1,
Update = 2,
Delete = 4,
Select = 8
}
According to the Great FxCop, this method needs to have the FlagsAttribute attribute defined, i.e.
[Flags()]
enum OperationType
{
Insert = 1,
Update = 2,
Delete = 4,
Select = 8
}