Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
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

 
COPYRIGHT/DISCLAIMER | CONTACT US