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 to Customize Deserialization of a JSON enum in .NET?

I have the following sample C# code that is auto-genereated from an xsd using the svcutils.exe application. [DataContract] public …

c# wcf json xsd datacontractserializer
DataContractSerializer with Multiple Namespaces

I am using a DataContractSerializer to serialize an object to XML. The main object is SecurityHolding with the namespace "http://…

c# xml namespaces datacontractserializer
Custom serialization with DataContractSerializer

I'm currently using wrapper classes for my DataSets ,in order to implement custom serialization. I would like to use DataContractSerializer (…

c# serialization datacontractserializer datacontract
RuntimeType:http://schemas.datacontract.org/2004/07/System' is not expected

Ok so I got DataContractSerializer working with my object graph. See my previous questions for more information. Serialization / Derialization of …

c# datacontractserializer
Can I serialize Dictionary<string, object> using DataContract serializer?

I'm planning to build a WCFservice that returns generic dictionary objects serialized to JSON. Unfortunately, serialization fails, as object is …

json wcf serialization datacontractserializer
Partial deserialization of JSON object by using DataContractJsonSerializer

As a response from a Bitbucket REST API I'm getting the following JSON object (simplified version): { "repositories": [ { "scm": "hg", "has_…

c# json deserialization datacontractserializer datacontractjsonserializer
How to register Known Types for serialization when using ASP.NET MVC Web API

I have a ASP.NET MVC Web API controller that returns public IEnumerable<IMessage> Get() It throws exception …

c# asp.net-mvc asp.net-web-api datacontractserializer
Predefine XML namespaces for DataContractSerializer

I'm building a self hosted WCF service. I'm building a special data structure for a very flexible transport of data. …

c# xml-serialization xml-namespaces datacontractserializer
Can I configure the DataContractSerializer to not create optional (i.e. Nullable<> and List<>) elements in output XML?

I am using the new .NET 3.0 DataContractSerializer. I have both Nullable<> and List<> objects I am …

c# .net datacontractserializer
WCF - serializing inherited types

I have these classes: [DataContract] public class ErrorBase {} [DataContract] public class FileMissingError: ErrorBase {} [DataContract] public class ResponseFileInquiry { [DataMember] public List&…

wcf serialization datacontractserializer