views:

85

answers:

1

I have two projects communicating over a wireless network. I have communication working fine between the two.

I would like to maintain two identical copies of some objects on both programs. The objects needn't be equal (in a reference sense), however the objects must show the same data when viewed.

Is there an existing technology to do this, or am I going to have to roll my own...?

A: 

If you can communicate between the two processes, then you should be able serialize the changes in any object, and notify the other process of the change. One thing I'd be worried about is what happens if the two objects change simultaneously - you'd have two stale objects and neither of them is valid.

Have a look at this CodeProject tutorial for more information on serialization.

Charlie Salts