By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,039 Members | 1,824 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,039 IT Pros & Developers. It's quick & easy.

Programmatically detecting property changes and method calls to an given object

P: n/a
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

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Derive subclasses from those objects(classes) and add needed Changed event,
maybe?

"Yasutaka Ito" <no****@nonexistent.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.