News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
public class Address
{
public int AddressType;
public string Line1;
public string Line2;
public string City;
public string ZipPostalCode;
}

The Web site interacts with an external data service that requires Address instances to be given in the following XML format.

<Address AddressType="2">
<Line1>250 Race Court</Line1>
<City>Chicago</City>
<PostalCode>60603</PostalCode>
</Address>

You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML format requirements of the external data service. Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)

  1. Add the following attribute to the AddressType field.
    [XmlAttribute]

  2. Add the following attribute to the Line2 field.
    [XmlElement(IsNullable=true)]

  3. Add the following attribute to the ZipPostalCode field.
    [XmlAttribute("ZipCode")]

  4. Add the following attribute to the ZipPostalCode field.
    [XmlElement("ZipCode")]

Answer: Answer is a, d
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;