I am using C#. I have created a class which can be included in any c#.net project (desktop or web based), but I want that only 10 objects will be created in that application
take an static counter in the class, and throw an exception in your class constructor if count>10