Top "Datacontract" questions

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

Naming Generic DataContracts in WCF

I am using a Generic Class as a Response Data Contract. All is good and this is streamlining the design …

wcf dynamic naming datacontract
Persist a DataContract as XML in a database

I'm working on a kind of "store and forward" application for WCF services. I want to save the message in …

c# xml wcf datacontract
Validate 'any' object against an interface in TypeScript at runtime

I am working on the UI of an app using typescript. At the same time others work on providing me …

ajax validation datacontract typescript
Generally accepted way to avoid KnownType attribute for every derived class

Is there a generally accepted way to avoid having to use KnownType attributes on WCF services? I've been doing some …

c# wcf datacontract known-types
DataContract & DataMember attributes - how they affect type

what is the difference between class without DataContract attributes: public class BankOperationResult { public int CurrentAmount { get; set; } public bool Success { …

wcf datacontract
WCF Data Contract - best/cleanest way to enforce required values?

I have a WCF data contract with a bunch of properties of primitive types like int and decimal, and DateTime (…

wcf datacontract non-nullable isrequired
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
DataContract serialization of property of "Type"

How can I effectively serialize a property of type "Type" in my DataContract attributed class? I'm assuming that Type is …

c# .net serialization datacontract
c# - DataContract Serialization - Base Classes, Inheritance and Overrides

Good day everyone, I'm an independent game developer who has, in the past, primarily worked with XNA and, at the …

c# inheritance serialization overriding 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