Saturday, 14 September 2013

code restricting creation of more than one object in private constructor in C#

code restricting creation of more than one object in private constructor
in C#

I want to create a code in C# for Private constructor.I want that it
should allow only one object to be created but when I try to create more
than one a message showing " no more object can be created" should be
shown.I don't want to use static constructor in this code.

No comments:

Post a Comment