Need to traverse an object structure using Reflection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Bordeman

    Need to traverse an object structure using Reflection

    Hi all.

    I need to generically detect changes in any object from one point to the
    next. I can't modify the objects, nor can I use traditional serialization
    because the attributes aren't present and would be too slow anyway.

    My current approach is to recursively traverse a given object using
    Reflection, storing hash values for strings and value types, then do it
    again later and compare. Is there a better approach? Maybe someone has
    some code that would be helpful?

    Thanks.


  • Chris Bordeman

    #2
    Re: Need to traverse an object structure using Reflection

    Note I haven't written the traversal code, need whatever help I can get with
    that. Thanks again.

    "Chris Bordeman"
    <REMOVE_DUPED_L ETTERSccchhrrii iissbbooooorrdd eemmaann@hhoott mmaaiill.com>
    wrote in message news:O7c2lpRiIH A.484@TK2MSFTNG P06.phx.gbl...
    Hi all.
    >
    I need to generically detect changes in any object from one point to the
    next. I can't modify the objects, nor can I use traditional serialization
    because the attributes aren't present and would be too slow anyway.
    >
    My current approach is to recursively traverse a given object using
    Reflection, storing hash values for strings and value types, then do it
    again later and compare. Is there a better approach? Maybe someone has
    some code that would be helpful?
    >
    Thanks.
    >

    Comment

    Working...