Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

datacontract-->datamember of datacontract

$
0
0
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
Code:

var o = new order();
o.shipaddr.name="name";
o.shipaddr.street1="test st";

etc

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.

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>