1#if !NETFX_CORE && !NETSTANDARD2_0 && !NET5_0
10using System.Collections.Generic;
11using System.ServiceModel;
12using System.Runtime.Serialization;
14using System.ServiceModel.Description;
41 : base(operation, dataContractFormatAttribute)
53 public override XmlObjectSerializer
CreateSerializer(Type type,
string name,
string ns,
54 IList<Type> knownTypes)
56 return new NetDataContractSerializer(name, ns);
63 public override XmlObjectSerializer
CreateSerializer(Type type, XmlDictionaryString name,
64 XmlDictionaryString ns, IList<Type> knownTypes)
66 return new NetDataContractSerializer(name, ns);
Override the DataContract serialization behavior to use the NetDataContractSerializer.
NetDataContractOperationBehavior(OperationDescription operation, DataContractFormatAttribute dataContractFormatAttribute)
Create new instance of object.
override XmlObjectSerializer CreateSerializer(Type type, XmlDictionaryString name, XmlDictionaryString ns, IList< Type > knownTypes)
Overrided CreateSerializer to return an XmlObjectSerializer which is capable of preserving the object...
NetDataContractOperationBehavior(OperationDescription operation)
Create new instance of object.
override XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IList< Type > knownTypes)
Overrided CreateSerializer to return an XmlObjectSerializer which is capable of preserving the object...