Private Constructors (C#)
Full Name:
Private Constructors (C#)
Short Name:
Private Constructors (C#)
Type of Entity:
C#
Abstract:
A private constructor is a special instance constructor. It is commonly used in classes that contain static members only. If a class has one or more private constructors and no public constructors, then other classes (except nested classes) are not allowed to create instances of this class. For example:
MSDN Source URL:
http://msdn2.microsoft.com/kcfb85a6.aspx