19 instantiations of XmlSerializer
BoundTreeGenerator (1)
Program.cs (1)
50var serializer = new XmlSerializer(typeof(Tree));
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
76var serializer = new XmlSerializer(typeof(Tree));
IOperationGenerator (1)
Program.cs (1)
24var serializer = new XmlSerializer(typeof(Tree));
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlSerializerInputFormatter.cs (1)
226return new XmlSerializer(type);
XmlSerializerOutputFormatter.cs (1)
135return new XmlSerializer(type);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\ManifestReader.cs (1)
242var xs = new XmlSerializer(t);
ManifestUtil\ManifestWriter.cs (1)
26var s = new XmlSerializer(manifest.GetType());
System.Configuration.ConfigurationManager (2)
System\Configuration\SettingsPropertyValue.cs (2)
205XmlSerializer xs = new XmlSerializer(type); 266XmlSerializer xs = new XmlSerializer(type);
System.Drawing.Common.Tests (1)
mono\System.Drawing\BitmapTests.cs (1)
1139public void XmlSerialization() => new XmlSerializer(typeof(Bitmap));
System.Private.Xml (6)
System\Xml\Schema\XmlSchema.cs (1)
147XmlSerializer serializer = new XmlSerializer(typeof(XmlSchema));
System\Xml\Serialization\XmlSchemas.cs (1)
579XmlSerializer s = new XmlSerializer(o.GetType());
System\Xml\Serialization\XmlSerializer.cs (1)
654serializers[i] = new XmlSerializer();
System\Xml\Serialization\XmlSerializerFactory.cs (3)
53return new XmlSerializer(xmlTypeMapping); 67return new XmlSerializer(type, defaultNamespace); 74return new XmlSerializer(type, overrides, extraTypes, root, defaultNamespace, location);
System.ServiceModel.Syndication (3)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (1)
84serializer ??= new XmlSerializer(xmlSerializerExtension.GetType());
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
82serializer ??= new XmlSerializer(xmlSerializerExtension.GetType());
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
122serializer ??= new XmlSerializer(typeof(TContent));
327 references to XmlSerializer
BoundTreeGenerator (1)
Program.cs (1)
50var serializer = new XmlSerializer(typeof(Tree));
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
76var serializer = new XmlSerializer(typeof(Tree));
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
77MethodInfo method = typeof(System.Xml.Serialization.XmlSerializer).GetMethod("GenerateSerializer", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); 96string sgenSource = XmlSerializer.GetXmlSerializerAssemblyName(types[0]);
dotnet-svcutil.xmlserializer.IntegrationTests (1)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (1)
60MethodInfo method = typeof(XmlSerializer).GetMethod(s_serializationModeSetterName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
IOperationGenerator (1)
Program.cs (1)
24var serializer = new XmlSerializer(typeof(Tree));
Microsoft.AspNetCore.Mvc.Formatters.Xml (19)
XmlSerializerInputFormatter.cs (8)
16/// to strongly-typed objects using <see cref="XmlSerializer"/> 128var serializer = GetCachedSerializer(type); 218/// Called during deserialization to get the <see cref="XmlSerializer"/>. 220/// <returns>The <see cref="XmlSerializer"/> used during deserialization.</returns> 221protected virtual XmlSerializer? CreateSerializer(Type type) 239/// <returns>The <see cref="XmlSerializer"/> instance.</returns> 240protected virtual XmlSerializer GetCachedSerializer(Type type) 253return (XmlSerializer)serializer!;
XmlSerializerOutputFormatter.cs (11)
21/// to XML using <see cref="XmlSerializer"/> 52/// <param name="writerSettings">The settings to be used by the <see cref="XmlSerializer"/>.</param> 61/// <param name="writerSettings">The settings to be used by the <see cref="XmlSerializer"/>.</param> 124/// Create a new instance of <see cref="XmlSerializer"/> for the given object type. 127/// <returns>A new instance of <see cref="XmlSerializer"/></returns> 128protected virtual XmlSerializer? CreateSerializer(Type type) 233var xmlSerializer = GetCachedSerializer(wrappingType!); 273protected virtual void Serialize(XmlSerializer xmlSerializer, XmlWriter xmlWriter, object? value) 281/// <returns>The <see cref="XmlSerializer"/> instance.</returns> 282protected virtual XmlSerializer GetCachedSerializer(Type type) 293return (XmlSerializer)serializer!;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
XmlSerializerInputFormatterTest.cs (1)
697protected override XmlSerializer CreateSerializer(Type type)
XmlSerializerOutputFormatterTest.cs (2)
599protected override XmlSerializer CreateSerializer(Type type) 633protected override void Serialize(XmlSerializer xmlSerializer, XmlWriter xmlWriter, object value)
Microsoft.Build.Tasks.Core (2)
ManifestUtil\ManifestReader.cs (1)
242var xs = new XmlSerializer(t);
ManifestUtil\ManifestWriter.cs (1)
26var s = new XmlSerializer(manifest.GetType());
netstandard (1)
netstandard.cs (1)
2441[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlSerializer))]
System.Configuration.ConfigurationManager (2)
System\Configuration\SettingsPropertyValue.cs (2)
205XmlSerializer xs = new XmlSerializer(type); 266XmlSerializer xs = new XmlSerializer(type);
System.Data.Common (18)
System\Data\Common\ObjectStorage.cs (14)
353XmlSerializer deserializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(type); 453XmlSerializer deserializerWithRootAttribute = ObjectStorage.GetXmlSerializer(_dataType, xmlAttrib); 497XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType()); 513XmlSerializer serializerWithRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType(), xmlAttrib); 552private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache; 573internal static XmlSerializer GetXmlSerializer(Type type) 580XmlSerializer serializer = s_serializerFactory.CreateSerializer(type); 586internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute) 588XmlSerializer? serializer = null; 592Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? cache = s_tempAssemblyCache; 609Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> tmp = 610new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>( 612foreach (KeyValuePair<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> entry in cache) 620cache = new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
System\Data\Common\SqlUDTStorage.cs (4)
165XmlSerializer deserializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(_dataType); 197XmlSerializer deserializerWithRootAttribute = ObjectStorage.GetXmlSerializer(_dataType, xmlAttrib); 216XmlSerializer serializerWithOutRootAttribute = ObjectStorage.GetXmlSerializer(value.GetType()); 236XmlSerializer serializerWithRootAttribute = ObjectStorage.GetXmlSerializer(_dataType, xmlAttrib);
System.Private.Xml (263)
System\Xml\Schema\XmlSchema.cs (13)
95[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 96[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 102[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 103[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 112[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 113[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 120[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 121[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 130[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 131[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 142[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 143[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 147XmlSerializer serializer = new XmlSerializer(typeof(XmlSchema));
System\Xml\Serialization\CodeGenerator.cs (2)
432[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1250[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\CodeIdentifiers.cs (1)
171[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\Compilation.cs (3)
50[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 173if (XmlSerializer.Mode == SerializationMode.PreGenOnly) 437[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\ImportContext.cs (2)
155[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 202[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\NameTable.cs (1)
97[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\PrimitiveXmlSerializers.cs (3)
240[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 755[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 756[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
18[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 19[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
14[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 15[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1331[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)]
System\Xml\Serialization\SchemaImporter.cs (3)
29[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 127[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 139[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\SoapReflectionImporter.cs (11)
47[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 64[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 70[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 76[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 82[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 98[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 105[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 112[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 119[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 646[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 771[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)]
System\Xml\Serialization\Types.cs (2)
1046[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1097[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)]
System\Xml\Serialization\XmlReflectionImporter.cs (34)
86[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 87[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 94[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 108[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 109[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 116[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 140[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 141[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 150[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 151[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 160[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 161[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 170[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 171[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 185[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 186[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 195[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 196[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 206[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 207[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 217[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 218[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 267[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 390[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 397[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 509[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 727[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 793[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1092[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1246[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1325[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1407[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1502[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1528[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSchemaImporter.cs (53)
21[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 22[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 25[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 26[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 29[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 30[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 50[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 51[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 77[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 78[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 84[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 85[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 91[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 92[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 130[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 131[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 137[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 138[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 144[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 145[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 185[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 186[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 192[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 193[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 222[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 223[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 248[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 265[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 325[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 392[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 414[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 443[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 478[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 494[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 605[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 637[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 754[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 769[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 907[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 914[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1016[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1066[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1092[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1113[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1239[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1259[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1404[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1462[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1572[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1602[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1662[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1724[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1796[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSchemas.cs (8)
322[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 363[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 573[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 579XmlSerializer s = new XmlSerializer(o.GetType()); 589[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 623[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 624[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 747[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
209_writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); 336_writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName);
System\Xml\Serialization\XmlSerializationILGen.cs (4)
14[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 15[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 276typeof(XmlSerializer), 438typeof(XmlSerializer),
System\Xml\Serialization\XmlSerializationReader.cs (18)
1344[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1354[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1553[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1753[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1754[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1757[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1758[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1772[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1773[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1779[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1780[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1786[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1787[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1793[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1794[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1801[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1802[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 1842[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
19[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 20[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 34[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 35[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSerializationWriter.cs (10)
256[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 811[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 817[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1310[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1316[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1322[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1328[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1415[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1418[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 1618[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)]
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
17[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 18[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 2546[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)]
System\Xml\Serialization\XmlSerializer.cs (57)
97public virtual XmlSerializer GetSerializer(Type type) { throw new NotSupportedException(); } 165private static readonly ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>> s_xmlSerializerTable = new ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>>(); 171[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 178[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 184[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 190[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 196[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 209[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 215[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 275[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 290[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 304[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 311[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 318[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 333[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 340[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 348[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 355[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 363[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 370[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 377[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 384[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 423[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 432[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 444[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 452[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 463[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 470[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 477[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 484[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 530[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 570[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 571public static XmlSerializer?[] FromMappings(XmlMapping[]? mappings) 577[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 578public static XmlSerializer?[] FromMappings(XmlMapping[]? mappings, Type? type) 580if (mappings == null || mappings.Length == 0) return Array.Empty<XmlSerializer>(); 592XmlSerializer[] serializers = GetReflectionBasedSerializers(mappings, type); 610return Array.Empty<XmlSerializer>(); 617XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 623serializers[i] = (XmlSerializer)contract.TypedSerializers[mappings[i].Key!]!; 638XmlSerializer?[] serializers = new XmlSerializer?[mappings.Length]; 641serializers[i] = contract!.TypedSerializers[mappings[i].Key!] as XmlSerializer; 649private static XmlSerializer[] GetReflectionBasedSerializers(XmlMapping[] mappings, Type? type) 651var serializers = new XmlSerializer[mappings.Length]; 705[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 706private static XmlSerializer[] GetSerializersFromCache(XmlMapping[] mappings, Type type) 708XmlSerializer?[] serializers = new XmlSerializer?[mappings.Length]; 709Dictionary<XmlSerializerMappingKey, XmlSerializer>? typedMappingTable = null; 712typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 741serializers[index] = (XmlSerializer)contract.TypedSerializers[mappingKey.Mapping.Key!]!; 753[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 754public static XmlSerializer?[] FromTypes(Type[]? types) 757return Array.Empty<XmlSerializer>();
System\Xml\Serialization\XmlSerializerFactory.cs (24)
21[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 22[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 23public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace) 28[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 29[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 30public XmlSerializer CreateSerializer(Type type, XmlRootAttribute? root) 35[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 36[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 37public XmlSerializer CreateSerializer(Type type, Type[]? extraTypes) 42[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 43[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 44public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides) 49[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 50[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 51public XmlSerializer CreateSerializer(XmlTypeMapping xmlTypeMapping) 56[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 57[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 58public XmlSerializer CreateSerializer(Type type) 63[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 64[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 65public XmlSerializer CreateSerializer(Type type, string? defaultNamespace) 70[RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] 71[RequiresDynamicCode(XmlSerializer.AotSerializationWarning)] 72public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace, string? location)
System.ServiceModel.Syndication (10)
System\ServiceModel\Syndication\SyndicationContent.cs (1)
63public static XmlSyndicationContent CreateXmlContent(object xmlSerializerObject, XmlSerializer serializer)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (4)
77public SyndicationElementExtension(object xmlSerializerExtension, XmlSerializer serializer) 142public TExtension GetObject<TExtension>(XmlSerializer serializer) 227private readonly XmlSerializer _xmlSerializer; 238public ExtensionDataWriter(object extensionData, XmlSerializer serializer)
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (3)
75public void Add(object xmlSerializerExtension, XmlSerializer serializer) 119public Collection<TExtension> ReadElementExtensions<TExtension>(string extensionName, string extensionNamespace, XmlSerializer serializer) 238private Collection<TExtension> ReadExtensions<TExtension>(string extensionName, string extensionNamespace, XmlObjectSerializer dcSerializer, XmlSerializer xmlSerializer)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (2)
62public XmlSyndicationContent(string type, object xmlSerializerExtension, XmlSerializer serializer) 120public TContent ReadContent<TContent>(XmlSerializer serializer)
System.Xml (1)
System.Xml.cs (1)
166[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlSerializer))]
System.Xml.Serialization (1)
System.Xml.Serialization.cs (1)
26[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlSerializer))]
System.Xml.XmlSerializer (1)
artifacts\obj\System.Xml.XmlSerializer\Debug\net10.0\System.Xml.XmlSerializer.Forwards.cs (1)
64[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlSerializer))]