I've got a data contract (shipping information) that i am trying to use as a datamember (shipaddr) in another data contract (order).
I can get to the sub items ok, so
in the client
however when i execute it i get a null reference object not set to an instance of an object error. on o.shipaddr.name="name"; I cant subclass the ship address either, only other thing i can think of is to inherit the shipping information into the order class and go from there.
I can get to the sub items ok, so
in the client
Code:
var o = new order();
o.shipaddr.name="name";
o.shipaddr.street1="test st";
etc