PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

An application serializes and deserializes XML fromstreams. 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.)

Select and Place:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

3 Comments on “How should you complete the relevant code?

  1. devprof says:

    [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;}
    }




    4



    0

Leave a Reply