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

My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?

1003


In Server how to check whether model has error or not in ASP.Net MVC

1130


differences between poco, model first and data first approach?

1213


How route table is created in ASP.NET MVC?

1066


how can you enhance the performance of entity framework?

1056


what is complex type?

1007


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

1131


Is mvc 4 supporting windows azure sdk (software development kit) ?

1026


What are action filters?

1035


Explain peek method in tempdata in asp.net mvc?

1119


What is oauth in web api?

1032


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

1018


mention what is code first approach and model first approach in entity framework?

1123


Explain tempdata in asp.net mvc?

1126


Can any particular component of .net framework 3.0 be removed?

983