Gendarme.Rules.Naming.UseSingularNameInEnumsUnlessAreFlagsRule(git)
Sebastien Pouliot edited this page Mar 2, 2011
·
1 revision
Assembly: Gendarme.Rules.Naming
Version: git
The rule is used for ensure that the name of enumerations are in singular form unless the enumeration is used as flags, i.e. decorated with the Flags attribute.
Bad example:
public enum MyCustomValues {
Foo,
Bar
}
Good example (singular):
public enum MyCustomValue {
Foo,
Bar
}
Good example (flags):
[Flags]
public enum MyCustomValues {
Foo,
Bar,
AllValues = Foo | Bar
}
You can browse the latest source code of this rule on github.com
Note that this page was autogenerated (3/17/2011 1:55:44 PM) based on the xmldoc
comments inside the rules source code and cannot be edited from this wiki.
Please report any documentation errors, typos or suggestions to the
Gendarme Mailing List. Thanks!