datacontract
Enforcing Restritions On DataContracts
Is there any way one can enforce restrictions on values passed in the form of data contracts as parameters to a given WCF Service?[详细]
2023-04-12 03:43 分类:问答C# DataContractJsonSerializer fails when value can be an array or a single item
I use the DataContractJsonSerializer to parse a json string into a object hierarchie. The json string looks like this:[详细]
2023-04-10 19:03 分类:问答Does the message contract provide interoperability across different languages?
I am reading about WCF services. I am new to the WCF services. I read that WCF provides interoperability. I want to know in which context it provides the interoperability. Is it providing the interope[详细]
2023-04-09 00:12 分类:问答Could not get minOccurs="1" maxOccurs="1" for a string type in a DataContract
Below is a DataContract in my WCF service and its respective xsd schema shown in the wsdl file. [Serializable][详细]
2023-04-08 05:11 分类:问答Data contract serialization for IList<T>
I have the following code in which I\'m trying to serialize a list to a file public static void Serialize<T>(this IList<T> list, string f开发者_如何学GoileName)[详细]
2023-04-07 14:44 分类:问答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 a non-serializable Type (wow that\'s getting silly sounding.) I\'m sure that[详细]
2023-04-06 09:15 分类:问答CollectionDataContract serialization not adding custom properties (DataMember)
We have a legacy system that needs to be fed (XML) data in a most unstructured format. Is the following even possible with the .NET DataContractSerializer?[详细]
2023-04-06 05:31 分类:问答.NET ASMX AJAX returned object
Suppose I have a modal pop open which is populated using ajax calls and javascript. I have already written classes for my data objects in the backend which I\'d like to use, which come from my databa[详细]
2023-04-06 01:55 分类:问答WCF - Instantiating an object in DataContract constructor
I have two classes as below: [DataContract] public class Address { [DataMember] public string Line1 [DataMember][详细]
2023-04-05 05:54 分类:问答Namespace for [DataContract]
I can\'t find the namespace to use for [DataContract] and [DataMember] elements. According to what I\'ve found, it seems that adding the following should be enough, but in my case it is not.[详细]
2023-04-05 01:24 分类:问答