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

Can we add constraints to the route? If yes, explain how we can do it?

1210


How can I return string result from action in asp.net mvc?

1037


What is storage model? : Entity framework

984


mention what is csdl, ssdl and msl sections in an edmx file?

1003


Mention some action filters which are used regularly in ASP.Net MVC?

972


Are there any parts of the .net framework 3.0 that only work on windows vista?

1061


Explain the advantage of packaging over xcopy in .net?

955


How can you return string result from Action in ASP.Net MVC?

1038


what is client wins and store wins mode in entity framework concurrency?

1209


Which .net framework is installed?

957


I want ask from plz smaple example code for Biztalkk server

2189


Explain representational state transfer (rest) in detail?

1004


What are Scaffold templates in ASP.Net MVC?

1041


Explain the types of Scaffoldings.

1058


What is layout in mvc?

998