Programmatically detecting property changes and method calls to an given object

Discussion in 'ASP .Net Building Controls' started by Yasutaka Ito, Jan 27, 2004.

  1. Yasutaka Ito

    Yasutaka Ito Guest

    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
     
    Yasutaka Ito, Jan 27, 2004
    #1
    1. Advertising

  2. Yasutaka Ito

    Norman Yuan Guest

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

    "Yasutaka Ito" <> wrote in message
    news:...
    > 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
    >
     
    Norman Yuan, Jan 27, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lord0
    Replies:
    1
    Views:
    599
    Thomas Weidenfeller
    Apr 19, 2006
  2. andy6
    Replies:
    2
    Views:
    793
    andy6 via DotNetMonster.com
    Jun 9, 2006
  3. chiara
    Replies:
    6
    Views:
    501
    Barry Schwarz
    Oct 6, 2005
  4. 2Barter.net
    Replies:
    0
    Views:
    396
    2Barter.net
    Dec 13, 2006
  5. Peter Lynch
    Replies:
    9
    Views:
    108
    Trans
    Jan 2, 2007
Loading...

Share This Page