This rule is Obsolete | |
Synopsis: | Name an identifier according to its meaning and not its type |
Language: | C# |
Severity Level: | 6 |
Category: | Naming |
Description: | ||||||||||||||||||||||||||||||
Avoid using language specific terminology in names of identifiers. Example: Do not use a definition like: Instead, use: If it is absolutely required to have a uniquely named method for every data type, use Universal Type Names in the method names. The table below provides the mapping from C# types to Universal types.
Based on the example above, the corresponding reading methods may look like this: double ReadDouble(); long ReadInt64(); | ||||||||||||||||||||||||||||||