Top "Datacontractserializer" questions

.NET Framework class, Serializing and deserializing an instance of a type into an XML stream or document using a supplied data contract.

Avoiding using the “http://www.w3.org/2001/XMLSchema-instance” namespace with .Net DataContractSerializer

I have a series of classes that I am converting to XML using .NET's DataContractSerializer in .NET 4.0. The serialisation is …

c# .net xml datacontractserializer netdatacontractserializer
Serialize an object using DataContractJsonSerializer as a json array

I have a class which contains a list of items. I want to serialize an instance of this class to …

c# json datacontractserializer datacontractjsonserializer
Passing an instance of anonymous type over WCF

I have a WCF service method that expects an object and then retrieves its properties using reflection. On the client …

wcf anonymous-types datacontractserializer datacontract
When/Why should I not use IsReference=true on my DataContracts?

I understand what is the attribute property IsReference and what it is doing. But I don't understand why/when I …

wcf datacontract datacontractserializer
DataContractSerializer does not properly deserialize, values for methods in object are missing

My SomeClass [Serializable] [DataContract(Namespace = "")] public class SomeClass { [DataMember] public string FirstName { get; set; } [DataMember] public string LastName { get; set; } […

c# serialization datacontractserializer
DataContractResolver / KnownType issue when custom class contains another custom class

I'm trying to output a list of objects to a json format using the DataContractJsonSerializer class however I keep running …

c# .net fluent-nhibernate datacontractserializer known-types
Serialize/deserialize objects - order of fields matters?

Is it possible that DataContractSerializer wrongly deserializes an object if the fields are not in the "correct" (whatever that means) …

c# .net serialization xml-serialization datacontractserializer
Is there a way to make DataContractSerializer output cleaner XML?

Using the DataContractSerializer to serialize my object I get an output similar to <?xml version="1.0" encoding="utf-8" ?> <…

c# xml datacontractserializer
DataContract model binding to JSON in ASP.NET MVC Action Method Arguments

MVC3 comes out of the box with JsonValueProviderFactory() which is very handy for binding incoming JSON to a model. Unfortunately, …

c# asp.net-mvc-3 datacontractserializer modelbinders model-binding