Top "Datamember" questions

When to use DataContract and DataMember attributes?

I am very confused about the DataContract attribute in WCF. As per my knowledge it is used for serializating user …

wcf datacontractserializer datacontract datamember
WCF: Exposing readonly DataMember properties without set?

I have a server side class which I make available on the client side through a [DataContract]. This class has …

.net wcf readonly datacontract datamember
DataMember attributes for Data validation

I am looking to place attributes on my WCF data contract members to validate string length and possibly use regex …

wcf attributes datamember
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
Is the DataMember IsRequired attribute in combination with a Nullable type contradictory?

I came across this today in a WCF contract: [DataMember(IsRequired = true)] public DateTime? LastModified { get; set; } What are the …

c# .net wcf datamember isrequired
Sending a Tuple object over WCF?

Is the System.Tuple class supported by WCF's Data Contract Serializer (i.e., can I pass Tuple objects to WCF …

c# .net wcf serialization datamember
.NET base type cannot be serialized by WCF

I'm writing a WCF service and want to expose some custom configuration elements (e.g. Custom ConfigurationSection and ConnectionStringSettings) so …

wcf serialization datacontract datamember configurationelement
Custom datacontract / datamember name

I have a following problem. A customer requested a web service that returns data in following format: <status> &…

wcf datacontract datamember