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.

How can I make DataContractJsonSerializer serialize an object as a string?

I have a struct in C# that wraps a guid. I'm using DataContractJsonSerializer to serialize an object containing an instance …

c# .net json datacontractserializer
WCF chokes on properties with no "set ". Any workaround?

I have some class that I'm passing as a result of a service method, and that class has a get-only …

c# wcf properties datacontractserializer
Deserializing XML with DataContractSerializer

I have a web service that returns the following data: <?xml version=""1.0"" encoding=""UTF-8""?> <RESPONSE> <…

c# .net xml datacontractserializer
DataContractSerializer and Dictionary<string,object> fails when reading

I'm using DataContractSerializer to serialize an object that contains a Dictionary<string,object> member, which is marked with […

c# .net generics datacontractserializer
Maximum number of items that can be serialized or deserialized in an object graph... with knowtypes

In a WCF 4.0 service we receive a huge amount of data in a generic list. This list object graph is …

wcf .net-4.0 datacontractserializer
WCF Service Reference - Getting "XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C" on Client Side

I have a smart client application communicating with its server via WCF. Data is created on the client and then …

c# .net wcf serialization datacontractserializer
WCF service dataContractSerializer maxItemsInObjectGraph in web.config

I am having issues specifying the dataContractSerializer maxItemsInObjectGraph in host's web.config. <behaviors> <serviceBehaviors> <behavior …

wcf web-config datacontractserializer servicebehavior
how to not return null when a Data member field is not set in the data contract

I'm having a strange problem with my WCF service that returns data in JSON format. I want to return information …

wcf json serialization datacontractserializer
Set default value in a DataContract?

How can I set a default value to a DataMember for example for the one shown below: I want to …

c# wcf datacontractserializer
DataContractJsonSerializer to skip nodes with null values

I am using DataContractJsonSerializer to serialize my custom object to JSON. But i want to skip the data members whose …

c# serialization datacontractserializer datacontractjsonserializer