-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.Naming.UseSingularNameInEnumsUnlessAreFlagsRule(2.10)
Sebastien Pouliot edited this page Feb 9, 2011
·
3 revisions
Assembly: Gendarme.Rules.Naming
Version: 2.10
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
}
Note that this page was autogenerated (3/17/2011 9:31:58 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!