Programmatically detecting property changes and method calls to an given object

Y

Yasutaka Ito

Hi,

Given an object, I want to programmatically monitor it for any property
changes and method calls. The object can be anything (component, control,
etc.), and there is no guarantee that each property has <property
name>Changed event corresponding to it.

What are the best way for this?
I'm sorry, I don't know where to get started from...

If "any object" makes it too much abstract, I'd want to accomplish this
preferrably on those objects that are derived from
System.ComponentModel.Component.

Appreciate any kind of inputs.

thanks!
-Yasutaka
 
N

Norman Yuan

Derive subclasses from those objects(classes) and add needed Changed event,
maybe?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top