Programmatically detecting property changes and method calls to an given object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yasutaka Ito

    #1

    Programmatically detecting property changes and method calls to an given object

    Hi,

    Given an object, I want to programmaticall y 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.Componen tModel.Componen t.

    Appreciate any kind of inputs.

    thanks!
    -Yasutaka

  • Norman Yuan

    #2
    Re: Programmaticall y detecting property changes and method calls to an given object

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

    "Yasutaka Ito" <nobody@nonexis tent.com> wrote in message
    news:OQ12HWI5DH A.1368@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > Given an object, I want to programmaticall y 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.Componen tModel.Componen t.
    >
    > Appreciate any kind of inputs.
    >
    > thanks!
    > -Yasutaka
    >[/color]


    Comment

    Working...