6 types derived from XmlSerializer
System.ServiceModel (1)
System\ServiceModel\Description\MetadataSet.cs (1)
963internal abstract class XmlSerializer1 : System.Xml.Serialization.XmlSerializer
System.Web.Extensions (2)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (1)
709internal abstract class XmlSerializer1 : System.Xml.Serialization.XmlSerializer {
Compilation\XmlSerializer\SvcMapFileSerializer.cs (1)
1434internal abstract class XmlSerializer1 : System.Xml.Serialization.XmlSerializer {
System.Web.Services (3)
System\Web\Services\Description\ServiceDescription.cs (1)
228internal class ServiceDescriptionSerializer : XmlSerializer {
System\Web\Services\Description\WebReferenceOptions.cs (1)
418internal sealed class webReferenceOptionsSerializer : XmlSerializer {
System\Web\Services\Discovery\DiscoveryDocument.cs (1)
143internal class DiscoveryDocumentSerializer : XmlSerializer {
21 instantiations of XmlSerializer
System.Messaging (4)
System\Messaging\XmlMessageFormatter.cs (4)
157formatter.targetSerializerTable[targetType] = new XmlSerializer(targetType); 172this.targetSerializerTable[targetType] = new XmlSerializer(targetType); 181this.targetSerializerTable[this.targetTypes[index]] = new XmlSerializer(this.targetTypes[index]); 235serializer = new XmlSerializer(serializedType);
System.ServiceModel (6)
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (2)
51this.serializer = new XmlSerializer(type); 57this.serializer = new XmlSerializer(type, xmlRoot);
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (1)
93serializer = new XmlSerializer(serializedType);
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
89serializer = new XmlSerializer(xmlSerializerExtension.GetType());
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
91serializer = new XmlSerializer(xmlSerializerExtension.GetType());
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
148serializer = new XmlSerializer(typeof(TContent));
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
82fault = context.CreateXmlResponse(webFaultException.DetailObject, new XmlSerializer(webFaultException.DetailType, webFaultException.KnownTypes));
System.Web.Extensions (1)
Script\Services\ServicesUtilities.cs (1)
114XmlSerializer xs = new XmlSerializer(obj.GetType());
System.Web.Services (6)
System\Web\Services\Description\ServiceDescription.cs (1)
263serializer = new XmlSerializer(typeof(ServiceDescription), overrides);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
336XmlSerializer ser = new XmlSerializer(typeof(DiscoveryClientResultsFile)); 509XmlSerializer ser = new XmlSerializer(typeof(DiscoveryClientResultsFile));
System\Web\Services\Discovery\DynamicDiscoveryDocument.cs (2)
56XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument)); 65XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument));
System\Web\Services\Protocols\SoapHeader.cs (1)
354XmlSerializer headerSerializer = new XmlSerializer(header.GetType(), ns);
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\Configuration.cs (1)
30XmlSerializer xmlSerializer = new XmlSerializer(typeof(AuthorizedType), authorizedTypeOverrides);
System.Xml (2)
System\Xml\Schema\XmlSchema.cs (1)
171XmlSerializer serializer = new XmlSerializer(typeof(XmlSchema));
System\Xml\Serialization\XmlSchemas.cs (1)
567XmlSerializer s = new XmlSerializer(o.GetType());
171 references to XmlSerializer
System.Data (18)
fx\src\data\System\Data\Common\ObjectStorage.cs (14)
295XmlSerializer deserializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(type); 370XmlSerializer deserializerWithRootAttribute = ObjectStorage.GetXmlSerializer(DataType, xmlAttrib); 404XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType()); 415XmlSerializer serializerWithRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType(), xmlAttrib); 453private static Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> _tempAssemblyCache; 472internal static XmlSerializer GetXmlSerializer(Type type) 479XmlSerializer serializer = _serializerFactory.CreateSerializer(type); 483internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute) 485XmlSerializer serializer = null; 489Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> cache = _tempAssemblyCache; 506Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> tmp = 507new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>( 509foreach (KeyValuePair<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> entry in cache) 517cache = new Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer>(
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (4)
153XmlSerializer deserializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(DataType); 175XmlSerializer deserializerWithRootAttribute = ObjectStorage.GetXmlSerializer(DataType, xmlAttrib); 189XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType()); 204XmlSerializer serializerWithRootAttribute = ObjectStorage.GetXmlSerializer(DataType, xmlAttrib);
System.Messaging (4)
System\Messaging\XmlMessageFormatter.cs (4)
131foreach (XmlSerializer serializer in targetSerializerTable.Values) 206foreach (XmlSerializer serializer in targetSerializerTable.Values) 230XmlSerializer serializer = null; 232serializer = (XmlSerializer)this.targetSerializerTable[serializedType];
System.ServiceModel (40)
System\ServiceModel\Channels\MsmqDecodeHelper.cs (1)
449foreach (XmlSerializer serializer in listener.XmlSerializerList)
System\ServiceModel\Description\MetadataSet.cs (1)
1053public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (11)
723XmlSerializer[] serializers = null; 744internal XmlSerializer GetSerializer(int handle) 764XmlSerializer[] GenerateSerializers() 781XmlSerializer[] uniqueSerializers = CreateSerializersFromMappings(uniqueMappings.ToArray(), type); 784XmlSerializer[] serializers = new XmlSerializer[Mappings.Count]; 795XmlSerializer[] CreateSerializersFromMappings(XmlMapping[] mappings, Type type) 797return XmlSerializer.FromMappings(mappings, type); 815internal XmlSerializer GetSerializer() 878internal override XmlSerializer BodySerializer 888internal override XmlSerializer HeaderSerializer
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (3)
17XmlSerializer serializer; 28internal XmlSerializerObjectSerializer(Type type, XmlQualifiedName qualifiedName, XmlSerializer xmlSerializer) 37void Initialize(Type type, string rootName, string rootNamespace, XmlSerializer xmlSerializer)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (6)
45XmlSerializer serializer; 141XmlSerializer serializer; 315void SerializeBody(XmlDictionaryWriter writer, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, object returnValue, object[] parameters) 368object DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, object[] parameters, bool isRequest) 422internal abstract XmlSerializer BodySerializer { get; } 423internal abstract XmlSerializer HeaderSerializer { get; }
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (5)
64XmlSerializer GetXmlSerializerForType(Type serializedType) 75XmlSerializer serializer = (XmlSerializer)this.xmlSerializerTable[serializedType]; 87serializer = (XmlSerializer)this.xmlSerializerTable[serializedType]; 128XmlSerializer serializer = GetXmlSerializerForType(property.Body.GetType());
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelListener.cs (3)
13XmlSerializer[] xmlSerializerList; 20xmlSerializerList = XmlSerializer.FromTypes(parameters.TargetSerializationTypes); 28internal XmlSerializer[] XmlSerializerList
System\ServiceModel\Syndication\SyndicationContent.cs (1)
82public static XmlSyndicationContent CreateXmlContent(object xmlSerializerObject, XmlSerializer serializer)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (4)
81public SyndicationElementExtension(object xmlSerializerExtension, XmlSerializer serializer) 148public TExtension GetObject<TExtension>(XmlSerializer serializer) 231readonly XmlSerializer xmlSerializer; 242public ExtensionDataWriter(object extensionData, XmlSerializer serializer)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (3)
83public void Add(object xmlSerializerExtension, XmlSerializer serializer) 127public Collection<TExtension> ReadElementExtensions<TExtension>(string extensionName, string extensionNamespace, XmlSerializer serializer) 243Collection<TExtension> ReadExtensions<TExtension>(string extensionName, string extensionNamespace, XmlObjectSerializer dcSerializer, XmlSerializer xmlSerializer)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (2)
65public XmlSyndicationContent(string type, object xmlSerializerExtension, XmlSerializer serializer) 144public TContent ReadContent<TContent>(XmlSerializer serializer)
System.ServiceModel.Web (9)
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (6)
22Dictionary<Type, XmlSerializer> serializersMap; 28this.serializersMap = new Dictionary<Type, XmlSerializer>(); 98XmlSerializer[] serializers = XmlSerializer.FromMappings(mappings.ToArray()); 113XmlSerializer serializer; 115public XmlSerializerXmlObjectSerializer(XmlSerializer serializer)
System\ServiceModel\Web\WebOperationContext.cs (3)
130public Message CreateXmlResponse<T>(T instance, XmlSerializer serializer) 369XmlSerializer serializer; 371public XmlSerializerBodyWriter(object instance, XmlSerializer serializer)
System.Web.Extensions (8)
Compilation\WCFModel\DataSvcMapFileLoader.cs (2)
28private XmlSerializer _mapFileSerializer; 70protected override XmlSerializer GetMapFileSerializer()
Compilation\WCFModel\MapFileLoader.cs (1)
178protected abstract XmlSerializer GetMapFileSerializer();
Compilation\WCFModel\SvcMapFileLoader.cs (2)
28private XmlSerializer _mapFileSerializer; 70protected override XmlSerializer GetMapFileSerializer()
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (1)
773public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type) {
Compilation\XmlSerializer\SvcMapFileSerializer.cs (1)
1498public override System.Xml.Serialization.XmlSerializer GetSerializer(System.Type type) {
Script\Services\ServicesUtilities.cs (1)
114XmlSerializer xs = new XmlSerializer(obj.GetType());
System.Web.Services (45)
System\Web\Services\Configuration\WebServicesSection.cs (2)
87internal XmlSerializer DiscoveryDocumentSerializer { 508XmlSerializer discoveryDocumentSerializer = null;
System\Web\Services\Description\ServiceDescription.cs (3)
52static XmlSerializer serializer; 253public static XmlSerializer Serializer { 435XmlSerializer serializer = Serializer;
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
336XmlSerializer ser = new XmlSerializer(typeof(DiscoveryClientResultsFile)); 509XmlSerializer ser = new XmlSerializer(typeof(DiscoveryClientResultsFile));
System\Web\Services\Discovery\DiscoveryDocument.cs (1)
118XmlSerializer serializer = WebServicesSection.Current.DiscoveryDocumentSerializer;
System\Web\Services\Discovery\DynamicDiscoveryDocument.cs (2)
56XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument)); 65XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument));
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
66XmlSerializer serializer = ServiceDescription.Serializer;
System\Web\Services\Protocols\SoapClientProtocol.cs (7)
52if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceCreateSerializer), caller, new TraceMethod(typeof(XmlSerializer), "FromMappings", xmlMappings, type)); 53XmlSerializer[] serializers = XmlSerializer.FromMappings(xmlMappings, type); 144internal XmlSerializer returnSerializer; 145internal XmlSerializer parameterSerializer; 146internal XmlSerializer inHeaderSerializer; 147internal XmlSerializer outHeaderSerializer;
System\Web\Services\Protocols\SoapHeader.cs (3)
226public string ReadHeaders(XmlReader reader, XmlSerializer serializer, SoapHeaderCollection headers, SoapHeaderMapping[] mappings, SoapHeaderDirection direction, string envelopeNS, string encodingStyle, bool checkRequiredHeaders) { 291public static void WriteHeaders(XmlWriter writer, XmlSerializer serializer, SoapHeaderCollection headers, SoapHeaderMapping[] mappings, SoapHeaderDirection direction, bool isEncoded, string defaultNS, bool serviceDefaultIsEncoded, string envelopeNS) { 354XmlSerializer headerSerializer = new XmlSerializer(header.GetType(), ns);
System\Web\Services\Protocols\SoapServerMethod.cs (12)
27internal XmlSerializer returnSerializer; 28internal XmlSerializer parameterSerializer; 29internal XmlSerializer inHeaderSerializer; 30internal XmlSerializer outHeaderSerializer; 86public XmlSerializer ReturnSerializer { 92public XmlSerializer ParameterSerializer { 98public XmlSerializer InHeaderSerializer { 104public XmlSerializer OutHeaderSerializer { 253if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceCreateSerializer), caller, new TraceMethod(typeof(XmlSerializer), "FromMappings", xmlMappings, serverEvidence)); 254XmlSerializer[] serializers = null; 256serializers = XmlSerializer.FromMappings(xmlMappings); 260serializers = XmlSerializer.FromMappings(xmlMappings, serverEvidence);
System\Web\Services\Protocols\SoapServerProtocol.cs (4)
114if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceCreateSerializer), caller, new TraceMethod(typeof(XmlSerializer), "FromMappings", xmlMappings, this.Evidence)); 115XmlSerializer[] serializers = null; 117serializers = XmlSerializer.FromMappings(xmlMappings); 121serializers = XmlSerializer.FromMappings((xmlMappings), this.Evidence);
System\Web\Services\Protocols\XmlReturnReader.cs (6)
49if (Tracing.On) Tracing.Enter(Tracing.TraceId(Res.TraceCreateSerializer), caller, new TraceMethod(typeof(XmlSerializer), "FromMappings", xmlMappings, evidence)); 50XmlSerializer[] serializers = null; 53serializers = XmlSerializer.FromMappings(xmlMappings); 58serializers = XmlSerializer.FromMappings(xmlMappings, evidence); 94XmlSerializer xmlSerializer; 98xmlSerializer = (XmlSerializer)o;
System\Web\Services\Protocols\XmlReturnWriter.cs (2)
18XmlSerializer xmlSerializer; 21xmlSerializer = (XmlSerializer)o;
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\Configuration.cs (1)
30XmlSerializer xmlSerializer = new XmlSerializer(typeof(AuthorizedType), authorizedTypeOverrides);
System.Xml (46)
System\Xml\Schema\XmlSchema.cs (1)
171XmlSerializer serializer = new XmlSerializer(typeof(XmlSchema));
System\Xml\Serialization\Compilation.cs (1)
320compiler.AddImport(typeof(XmlSerializer).Assembly);
System\Xml\Serialization\XmlSchemas.cs (1)
567XmlSerializer s = new XmlSerializer(o.GetType());
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
219writer.Write(typeof(XmlSerializer).FullName); 337writer.Write(typeof(XmlSerializer).FullName);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
255typeof(XmlSerializer), 422typeof(XmlSerializer),
System\Xml\Serialization\XmlSerializer.cs (24)
98public virtual XmlSerializer GetSerializer(Type type){ throw new NotSupportedException(); } 462public static XmlSerializer[] FromMappings(XmlMapping[] mappings) { 471public static XmlSerializer[] FromMappings(XmlMapping[] mappings, Type type) { 472if (mappings == null || mappings.Length == 0) return new XmlSerializer[0]; 478return new XmlSerializer[0]; 483XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 488serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].Key]; 501XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 503serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].Key]; 508static XmlSerializer[] GetSerializersFromCache(XmlMapping[] mappings, Type type) { 509XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 524serializers[i] = typedMappingTable[mappingKey] as XmlSerializer; 542serializers[index] = (XmlSerializer)contract.TypedSerializers[mappingKey.Mapping.Key]; 559public static XmlSerializer[] FromMappings(XmlMapping[] mappings, Evidence evidence) { 560if (mappings == null || mappings.Length == 0) return new XmlSerializer[0]; 562return new XmlSerializer[0]; 566XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 568serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].Key]; 625public static XmlSerializer[] FromTypes(Type[] types) { 627return new XmlSerializer[0];
System\Xml\Serialization\XmlSerializerFactory.cs (15)
36public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) { 44public XmlSerializer CreateSerializer(Type type, XmlRootAttribute root) { 52public XmlSerializer CreateSerializer(Type type, Type[] extraTypes) { 60public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides) { 68public XmlSerializer CreateSerializer(XmlTypeMapping xmlTypeMapping) { 69TempAssembly tempAssembly = XmlSerializer.GenerateTempAssembly(xmlTypeMapping); 70return (XmlSerializer)tempAssembly.Contract.TypedSerializers[xmlTypeMapping.Key]; 77public XmlSerializer CreateSerializer(Type type) { 85public XmlSerializer CreateSerializer(Type type, string defaultNamespace) { 100tempAssembly = XmlSerializer.GenerateTempAssembly(mapping, type, defaultNamespace); 112return (XmlSerializer)tempAssembly.Contract.GetSerializer(type); 115public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location) { 126public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location, Evidence evidence) { 139TempAssembly tempAssembly = XmlSerializer.GenerateTempAssembly(mapping, type, defaultNamespace, location, evidence); 140return (XmlSerializer)tempAssembly.Contract.TypedSerializers[mapping.Key];