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

Rule:  7@102Checked automatically with code checker

Synopsis:Prevent instantiation of a class if it contains only static members
Language:C#
Severity Level:5
Category:Object oriented


Description:

The ways to achieve this are:

  • Provide a private constructor (for .NET 1.1 and lower only!).
  • Mark the class as static for .NET 2.0 and newer.