M
Mannie
Is there any way I can add a member field to an already existing class
during runtime?
I know there are many examples using Reflection.Emit showing how to
dynamically create a new class and adding things to it, but that's not what
I want. I really need to use existing classes. I have investigated the
Profiler API, but having its dll snapped to the CLR reminds me of the Borg
and their implants. It is not really what I -or my customers- want for
production.
I need this because I'm creating a simple OO database which needs references
to objects when updating. The value that I want to add on the fly is the
object id.
Thanks!
Manfred Suttorp
PS. I would appreciate relevant comments only - no lectures about OO design
or telling me I shouldn't do this please.
during runtime?
I know there are many examples using Reflection.Emit showing how to
dynamically create a new class and adding things to it, but that's not what
I want. I really need to use existing classes. I have investigated the
Profiler API, but having its dll snapped to the CLR reminds me of the Borg
and their implants. It is not really what I -or my customers- want for
production.
I need this because I'm creating a simple OO database which needs references
to objects when updating. The value that I want to add on the fly is the
object id.
Thanks!
Manfred Suttorp
PS. I would appreciate relevant comments only - no lectures about OO design
or telling me I shouldn't do this please.