TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C# Coding Standard
Search

Rule:  3@203

This rule is Obsolete
Synopsis:Use a plural name for enumerations representing bitfields
Language:C#
Severity Level:7
Category:Naming


Description:

Use a plural name for such enumeration types. The following code snippet is a good example of an enumeration that allows combining multiple options.

[Flags]
public enum SearchOptions
{
	CaseInsensitive = 0x01,
	WholeWordOnly = 0x02,
	AllDocuments = 0x04,
	Backwards = 0x08,
	AllowWildcards = 0x10
}