Solved

Serialization of an Object Graph

Posted on 2013-01-05
2
286 Views
Last Modified: 2013-01-06
What type of serialization can be used on an Object Graph?  According to my MCTS Exam 70-536 book, I can't use XML Serialization. So is it Binary or Soap? Or is it something else?

FYI---Definition of Object Graph - a set of objects that reference one another.
0
Comment
Question by:metro156
2 Comments
 
LVL 8

Expert Comment

by:5teveo
ID: 38747884
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 400 total points
ID: 38748167
using NetDataContractSerializer you can easily serialize Object Graph without serializing same instances but only use a reference via unique id.
check this example:
http://blogs.microsoft.co.il/blogs/bursteg/archive/2006/08/10/WCF-Serialization-Same-Objects.aspx
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now