34 instantiations of XmlRoot
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
ProblemDetailsWrapper.cs (1)
14[XmlRoot("problem", Namespace = Namespace)]
SerializableErrorWrapper.cs (1)
13[XmlRoot("Error")]
ValidationProblemDetailsWrapper.cs (1)
12[XmlRoot("problem", Namespace = "urn:ietf:rfc:7807")]
Microsoft.Build.Tasks.Core (4)
ManifestUtil\ApplicationManifest.cs (1)
25[XmlRoot("ApplicationManifest")]
ManifestUtil\AssemblyIdentity.cs (1)
28[XmlRoot("AssemblyIdentity")]
ManifestUtil\AssemblyManifest.cs (1)
17[XmlRoot("AssemblyManifest")]
ManifestUtil\DeployManifest.cs (1)
60[XmlRoot("DeployManifest")]
PresentationFramework (4)
System\Windows\Annotations\Annotation.cs (1)
60[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Annotation)]
System\Windows\Annotations\AnnotationResource.cs (1)
38[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Resource)]
System\Windows\Annotations\LocatorGroup.cs (1)
36[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocatorGroup)]
System\Windows\Annotations\LocatorPartList.cs (1)
41[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocator)]
System.Data.Common (8)
System\Data\Common\ObjectStorage.cs (1)
620key = new KeyValuePair<Type, XmlRootAttribute>(type, new XmlRootAttribute());
System\Data\DataSet.cs (1)
31[XmlRoot(nameof(DataSet))]
System\Data\XmlDataLoader.cs (2)
1208xmlAttrib = new XmlRootAttribute(_dataReader.LocalName); 1213xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
System\Data\XMLDiffLoader.cs (2)
404xmlAttrib = new XmlRootAttribute(row.LocalName); 409xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
System\Data\xmlsaver.cs (2)
2609XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 3039XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Private.Xml (1)
System\Xml\Schema\XmlSchema.cs (1)
15[XmlRoot("schema", Namespace = XmlSchema.Namespace)]
System.ServiceModel.Primitives (2)
System\ServiceModel\Description\MetadataLocation.cs (1)
10[XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.Location, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
50XmlRootAttribute xmlRoot = new XmlRootAttribute();
System.ServiceModel.Syndication (11)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
16[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)] 1222[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (2)
11[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)] 140[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
11[XmlRoot(ElementName = App10Constants.Categories, Namespace = App10Constants.Namespace)]
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
15[XmlRoot(ElementName = App10Constants.Service, Namespace = App10Constants.Namespace)] 635[XmlRoot(ElementName = App10Constants.Service, Namespace = App10Constants.Namespace)]
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
14[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)] 1199[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)]
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (2)
11[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)] 163[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)]
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescription.cs (1)
21[XmlRoot("definitions", Namespace = Namespace)]
56 references to XmlRoot
netstandard (1)
netstandard.cs (1)
2428[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]
PresentationFramework (2)
MS\Internal\Annotations\Serializer.cs (2)
52_attribute = obj as XmlRootAttribute; 108private XmlRootAttribute _attribute;
System.Data.Common (27)
System\Data\Common\DataStorage.cs (2)
277public virtual object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 286public virtual void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\Common\ObjectStorage.cs (17)
359public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 500public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib) 548private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache; 580internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute) 583KeyValuePair<Type, XmlRootAttribute> key = new KeyValuePair<Type, XmlRootAttribute>(type, attribute); 586Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? cache = s_tempAssemblyCache; 603Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> tmp = 604new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>( 606foreach (KeyValuePair<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> entry in cache) 614cache = new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>( 620key = new KeyValuePair<Type, XmlRootAttribute>(type, new XmlRootAttribute()); 635private sealed class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>> 637internal static readonly IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>> s_default = new TempAssemblyComparer(); 641public bool Equals(KeyValuePair<Type, XmlRootAttribute> x, KeyValuePair<Type, XmlRootAttribute> y) 652public int GetHashCode(KeyValuePair<Type, XmlRootAttribute> obj)
System\Data\Common\SqlUDTStorage.cs (2)
171public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 220public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\DataColumn.cs (2)
1765internal object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 1778internal void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\XmlDataLoader.cs (1)
1157XmlRootAttribute? xmlAttrib = null; // Might need this attribute for XmlSerializer
System\Data\XMLDiffLoader.cs (1)
397XmlRootAttribute? xmlAttrib = null;
System\Data\xmlsaver.cs (2)
2609XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 3039XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Globals.cs (1)
194s_typeOfXmlRootAttribute ??= typeof(XmlRootAttribute);
System\Runtime\Serialization\XmlDataContract.cs (2)
168XmlRootAttribute xmlRootAttribute = (XmlRootAttribute)xmlRootAttributes[0];
System.Private.Xml (17)
System\Xml\Serialization\XmlAttributes.cs (4)
40private XmlRootAttribute? _xmlRoot; 131else if (attrs[i] is XmlRootAttribute) 133_xmlRoot = (XmlRootAttribute)attrs[i]; 265public XmlRootAttribute? XmlRoot
System\Xml\Serialization\XmlMapping.cs (3)
114internal static string GenerateKey(Type type, XmlRootAttribute? root, string? ns) 116root ??= (XmlRootAttribute?)XmlAttributes.GetAttr(type, typeof(XmlRootAttribute));
System\Xml\Serialization\XmlReflectionImporter.cs (3)
155public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute? root) 164public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute? root, string? defaultNamespace) 255private ElementAccessor ImportElement(TypeModel model, XmlRootAttribute? root, string? defaultNamespace, RecursionLimiter limiter)
System\Xml\Serialization\XmlSerializer.cs (4)
170public XmlSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace) : 176public XmlSerializer(Type type, XmlRootAttribute? root) : this(type, null, Type.EmptyTypes, root, null, null) 267public XmlSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace, string? location) 281private static XmlTypeMapping GenerateXmlTypeMapping(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace)
System\Xml\Serialization\XmlSerializerFactory.cs (3)
22public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace) 28public XmlSerializer CreateSerializer(Type type, XmlRootAttribute? root) 64public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace, string? location)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1319CodeAttributeDeclaration xmlRootAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(XmlRootAttribute)));
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
50XmlRootAttribute xmlRoot = new XmlRootAttribute();
System.Xml (1)
System.Xml.cs (1)
153[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net9.0\System.Xml.ReaderWriter.Forwards.cs (1)
112[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]
System.Xml.Serialization (1)
System.Xml.Serialization.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]
System.Xml.XmlSerializer (1)
artifacts\obj\System.Xml.XmlSerializer\Debug\net9.0\System.Xml.XmlSerializer.Forwards.cs (1)
51[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]