I have created a project and in this project, I have lots of classes for example: States, Cities, Companies, Buildings, Animals, Forests...
My problem is that I can do this:
$"On class {className[0]} you created {numberOfInstances[0]}"
I find all class names via reflection, but I don´t know how to count instances without changing constructor in all created classes.
Or how can I read all new() operators(modifiers) in my project?
I will be happy for any constructive answer
UPDATE:
I understand that count instances without change constructor is inposible. Can You help me to find app or working code, with I can change all constructors?