How to get all created types of an assembly?

How i can get all created types of an assembly when it’s running ?
I used reflexion but it can retrieve all types but not just instantiated types.

Example: After Runing the assembly.exe I want to get

System.Object   10 Instances
System.String   102 Instances
System.Char[]  10 Instances ....

So how we can do it ?


Source: .net

Leave a Reply