Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can I customise the serialization process

Answer Posted / kirti

Yes. XmlSerializer supports a range of attributes that can be used to configure serialization for a particular class. For example, a field or property can be marked with the [XmlIgnore] attribute to exclude it from serialization. Another example is the [XmlElement]

attribute, which can be used to specify the XML element name to be used for a particular property or field.

Serialization via SoapFormatter/BinaryFormatter can also be controlled to some extent by attributes. For example, the [NonSerialized] attribute is the equivalent of XmlSerializer's [XmlIgnore] attribute. Ultimate control of the serialization process can be acheived by implementing the the ISerializable interface on the class whose instances are to be serialized.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oauth in web api?

1084


Is it possible to cancel filter execution?

1069


What is the 'page life cycle' of an ASP.NET MVC?

1106


What are the levels at which filters can be applied in an asp.net mvc application?

1203


Explain the role of assembly in the .net framework.

1064


Why we need a separate mobile project template, while we can render our web application in mobile ?

1201


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

1117


What is meant by viewdata?

1048


Explain peek method in tempdata in asp.net mvc?

1168


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

1206


What is Dependency Injection in ASP.Net MVC

1102


Give an example for authorization filters in an asp.net mvc application?

1030


What is difference between razor and web form engine?

1205


what is entity data model?

1123


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

1057