开发者_如何学GoHow can I determine the number of instances of a specific object in memory in C#?
Actually I want to call the garbage collector when the unreferenced instances of an object increases beyond a certain limit.
If you really want to do that you can use static field for the class( Infos )
And then in constructor you increase the static field.. It is just an idea..
精彩评论