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