G
Guest
Hi,
I have three Types (in different assemblies) A (which is abstract), B and C.
B inherits A and C inherits B. My host Windows Application creates an
instance of C.
I would like to be able to look at this EXE and be able to tell that only
object C was directly instantiated. Currently I am using the AppDomain
GetAssemblies() method but this gives me Assemblies A, B and C.
So really this all boils down to how can I tell or can a class tell if it
was directly instantiated or if it was created by inheritance.
Help would be very much appreciated.
Thanks
I have three Types (in different assemblies) A (which is abstract), B and C.
B inherits A and C inherits B. My host Windows Application creates an
instance of C.
I would like to be able to look at this EXE and be able to tell that only
object C was directly instantiated. Currently I am using the AppDomain
GetAssemblies() method but this gives me Assemblies A, B and C.
So really this all boils down to how can I tell or can a class tell if it
was directly instantiated or if it was created by inheritance.
Help would be very much appreciated.
Thanks