How should you complete the relevant code?

DRAG DROP
An application serializes and deserializes XML from streams. The XML streams are in the
following format:

The application reads the XML streams by using a DataContractSerializer object that is
declared by the following code segment:
var ser = new DataContractSerializer(typeof(Name));
You need to ensure that the application preserves the element ordering as provided in the
XML stream.
How should you complete the relevant code? (To answer, drag the appropriate attributes to
the correct locations in the answer area-Each attribute may be used once, more than once,
or not at all. You may need to drag the split bar between panes or scroll to view content.)

DRAG DROP
An application serializes and deserializes XML from streams. The XML streams are in the
following format:

The application reads the XML streams by using a DataContractSerializer object that is
declared by the following code segment:
var ser = new DataContractSerializer(typeof(Name));
You need to ensure that the application preserves the element ordering as provided in the
XML stream.
How should you complete the relevant code? (To answer, drag the appropriate attributes to
the correct locations in the answer area-Each attribute may be used once, more than once,
or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:



Leave a Reply 1

Your email address will not be published. Required fields are marked *


MarcoJacob

MarcoJacob

[DataContract (NameSpace =’http://www.contoso.com/2012/06′)]
class Name
{
[DataMember (Order = 10)] —> FirstName is the last
public string FirstName{get;set;}

[DataMember] —> lastname is first
public string LastName{get;set;}
}