Top "Datacontract" questions

A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged.

Configure JSON.NET to ignore DataContract/DataMember attributes

We are running into a situation on an MVC3 project with both the Microsoft JSON serializers and JSON.NET. Everybody …

c# json json.net datacontract datamember
Why is using [DataMember(EmitDefaultValue = false)] not recommended?

In WCF you can define a contract using the [DataContract] and [DataMember] attributes, like this: [DataContract] public class Sample { [DataMember(…

wcf msdn datacontract datamember
DataContract, default DataMember value

Is there a way to choose default values of attributes that are not in the xml file during deserialization? If …

c# wcf datacontract datamember
IsReference property in data contract

What is the purpose of IsReference property in DataContract? How does the request and response vary with this property applied?

wcf datacontract
DataContract serialization exception (data contract name is not expected)

I have the following code: [DataContract] class TestContract { private String _Name; private Int32 _Age; [DataMember( Name = "Name" )] public String Name { …

c# serialization reflection datacontract
Multiple WCF services referencing the same data contracts

I am building a set of WCF services that share common data contracts (or entities if you prefer). These are …

wcf service datacontract reusability
how to mark an interface as DataContract in WCF

i have two data classes which hold only data members(no functions). One is CallTask the other is SmsTask. These …

c# wcf datacontract
Can I use DataContract and Serializable together?

I am working on WCF service. My all class are already serialize using [Serializable] attribute but due to "k__BackingField" …

wcf datacontract serializable
WCF DataContract with readonly properties

I'm trying to return a complex type from a service method in WCF. I'm using C# and .NET 4. This complex …

.net wcf .net-4.0 datacontract