34 instantiations of XmlRoot
BoundTreeGenerator (1)
Model.cs (1)
12[XmlRoot]
CSharpSyntaxGenerator (1)
Model\Tree.cs (1)
12[XmlRoot]
IOperationGenerator (1)
Model.cs (1)
14[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)
53[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Annotation)]
System\Windows\Annotations\AnnotationResource.cs (1)
32[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Resource)]
System\Windows\Annotations\LocatorGroup.cs (1)
30[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocatorGroup)]
System\Windows\Annotations\LocatorPartList.cs (1)
34[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocator)]
System.Data.Common (8)
System\Data\Common\ObjectStorage.cs (1)
626key = new KeyValuePair<Type, XmlRootAttribute>(type, new XmlRootAttribute());
System\Data\DataSet.cs (1)
31[XmlRoot(nameof(DataSet))]
System\Data\XmlDataLoader.cs (2)
1216xmlAttrib = new XmlRootAttribute(_dataReader.LocalName); 1221xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
System\Data\XMLDiffLoader.cs (2)
409xmlAttrib = new XmlRootAttribute(row.LocalName); 414xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
System\Data\xmlsaver.cs (2)
2624XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 3057XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Private.Xml (1)
System\Xml\Schema\XmlSchema.cs (1)
15[XmlRoot("schema", Namespace = XmlSchema.Namespace)]
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)]
55 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)
47_attribute = obj as XmlRootAttribute; 103private XmlRootAttribute _attribute;
System.Data.Common (27)
System\Data\Common\DataStorage.cs (2)
279public virtual object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 290public virtual void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\Common\ObjectStorage.cs (17)
361public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 504public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib) 552private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache; 586internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute) 589KeyValuePair<Type, XmlRootAttribute> key = new KeyValuePair<Type, XmlRootAttribute>(type, attribute); 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>( 626key = new KeyValuePair<Type, XmlRootAttribute>(type, new XmlRootAttribute()); 641private sealed class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>> 643internal static readonly IEqualityComparer<KeyValuePair<Type, XmlRootAttribute>> s_default = new TempAssemblyComparer(); 647public bool Equals(KeyValuePair<Type, XmlRootAttribute> x, KeyValuePair<Type, XmlRootAttribute> y) 658public int GetHashCode(KeyValuePair<Type, XmlRootAttribute> obj)
System\Data\Common\SqlUDTStorage.cs (2)
173public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 224public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\DataColumn.cs (2)
1768internal object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute? xmlAttrib) 1783internal void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute? xmlAttrib)
System\Data\XmlDataLoader.cs (1)
1165XmlRootAttribute? xmlAttrib = null; // Might need this attribute for XmlSerializer
System\Data\XMLDiffLoader.cs (1)
402XmlRootAttribute? xmlAttrib = null;
System\Data\xmlsaver.cs (2)
2624XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 3057XmlRootAttribute 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)
162public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute? root) 172public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute? root, string? defaultNamespace) 268private ElementAccessor ImportElement(TypeModel model, XmlRootAttribute? root, string? defaultNamespace, RecursionLimiter limiter)
System\Xml\Serialization\XmlSerializer.cs (4)
172public XmlSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace) : 179public XmlSerializer(Type type, XmlRootAttribute? root) : this(type, null, Type.EmptyTypes, root, null, null) 276public XmlSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace, string? location) 291private static XmlTypeMapping GenerateXmlTypeMapping(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace)
System\Xml\Serialization\XmlSerializerFactory.cs (3)
23public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides? overrides, Type[]? extraTypes, XmlRootAttribute? root, string? defaultNamespace) 30public XmlSerializer CreateSerializer(Type type, XmlRootAttribute? root) 72public 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.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\net10.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\net10.0\System.Xml.XmlSerializer.Forwards.cs (1)
51[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlRootAttribute))]