No, you can not. There is no way to see what instances of a type exist
in the current app domain. You ^might^ be able to do this through the hooks
that the CLR provides, but I wouldn't recommend it.
If you need this information, I would recommend using a class factory
pattern, where you can keep track of the instances that are created and then
retrieve them when necessary.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"ºù«µºÉÌÇæÈí¼þ£*ÕÅн¨" <Su********@sina.com> wrote in message
news:e3**************@TK2MSFTNGP11.phx.gbl...
i konw a type(no class),can i get this type`s instance list?