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

Rule:  7@101Checked automatically with code checker

Synopsis:Declare all fields (data members) private
Language:C#
Severity Level:2
Category:Object oriented


Description:

An honored principle, stated in both [C++ Coding Standard] and [MS Design].

Exceptions:

  • static readonly fields and const fields, which may have any accessibility deemed appropriate. See also [5@106].
  • Classes that only contain fields and no methods/properties.



Literature References:
C++ Coding Standard
MS Design