B
Bruce C. Miller
So, say I have an instance of a .Net object with a collection of
events. It is possible to get at these events and look at them with
various relection-type properties. However, would it be possible to
take another instance of the same type of .Net object, grab all of the
event handlers off of the old object, and stick them onto the new
one?
That is, do have access to these event handler methods (which are
delegates) from just looking at an instantiation of the object, and
can I pull them off and add them as event handlers on another object
of the same type?
events. It is possible to get at these events and look at them with
various relection-type properties. However, would it be possible to
take another instance of the same type of .Net object, grab all of the
event handlers off of the old object, and stick them onto the new
one?
That is, do have access to these event handler methods (which are
delegates) from just looking at an instantiation of the object, and
can I pull them off and add them as event handlers on another object
of the same type?