45 instantiations of XmlRootAttribute
PresentationFramework (4)
src\Framework\System\Windows\Annotations\Annotation.cs (1)
73[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Annotation)]
src\Framework\System\Windows\Annotations\AnnotationResource.cs (1)
51[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.Resource)]
src\Framework\System\Windows\Annotations\LocatorGroup.cs (1)
46[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocatorGroup)]
src\Framework\System\Windows\Annotations\LocatorPartList.cs (1)
49[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.Elements.ContentLocator)]
System.Data (8)
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
523key = new KeyValuePair<Type,XmlRootAttribute>(type, new XmlRootAttribute());
fx\src\data\System\Data\DataSet.cs (1)
44XmlRoot("DataSet")
fx\src\data\System\Data\XmlDataLoader.cs (2)
1139xmlAttrib = new XmlRootAttribute(dataReader.LocalName); 1143xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
fx\src\data\System\Data\XMLDiffLoader.cs (2)
371xmlAttrib = new XmlRootAttribute(row.LocalName); 375xmlAttrib = new XmlRootAttribute(column.EncodedColumnName);
fx\src\data\System\Data\xmlsaver.cs (2)
2266XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 2638XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Data.Services (2)
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
1176[XmlRoot(ElementName = XmlConstants.AtomInlineElementName, Namespace = XmlConstants.DataWebMetadataNamespace)] 1230[XmlRoot(ElementName = XmlConstants.AtomInlineElementName, Namespace = XmlConstants.DataWebMetadataNamespace)]
System.ServiceModel (19)
System\ServiceModel\Description\MetadataLocation.cs (1)
13[XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.Location, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\MetadataReference.cs (1)
17[XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.MetadataReference, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\MetadataSection.cs (1)
17[XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.MetadataSection, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Description\MetadataSet.cs (1)
16[XmlRoot(MetadataStrings.MetadataExchangeStrings.Metadata, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
54XmlRootAttribute xmlRoot = new XmlRootAttribute();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
25[XmlRoot(ElementName = "XPathMessageFilter", Namespace = XPathMessageFilter.RootNamespace)]
System\ServiceModel\EndpointAddress10.cs (1)
16[XmlRoot(AddressingStrings.EndpointReference, Namespace = Addressing10Strings.Namespace)]
System\ServiceModel\EndpointAddressAugust2004.cs (1)
16[XmlRoot(AddressingStrings.EndpointReference, Namespace = Addressing200408Strings.Namespace)]
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (2)
22[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)] 1323[XmlRoot(ElementName = Atom10Constants.FeedTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (2)
19[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)] 179[XmlRoot(ElementName = Atom10Constants.EntryTag, Namespace = Atom10Constants.Atom10Namespace)]
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
20[XmlRoot(ElementName = App10Constants.Categories, Namespace = App10Constants.Namespace)]
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (2)
23[XmlRoot(ElementName = App10Constants.Service, Namespace = App10Constants.Namespace)] 793[XmlRoot(ElementName = App10Constants.Service, Namespace = App10Constants.Namespace)]
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
22[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)] 1463[XmlRoot(ElementName = Rss20Constants.RssTag, Namespace = Rss20Constants.Rss20Namespace)]
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (2)
19[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)] 197[XmlRoot(ElementName = Rss20Constants.ItemTag, Namespace = Rss20Constants.Rss20Namespace)]
System.Web.Extensions (2)
Compilation\WCFModel\DataSvcMapFile.cs (1)
93[XmlRoot(Namespace = DataSvcMapFileImpl.NamespaceUri, ElementName = "ReferenceGroup")]
Compilation\WCFModel\SvcMapFile.cs (1)
93[XmlRoot(Namespace = SvcMapFileImpl.NamespaceUri, ElementName = "ReferenceGroup")]
System.Web.Services (8)
System\Web\Services\Description\ServiceDescription.cs (1)
31[XmlRoot("definitions", Namespace = ServiceDescription.Namespace)]
System\Web\Services\Description\WebReferenceOptions.cs (1)
23[XmlRoot("webReferenceOptions", Namespace = WebReferenceOptions.TargetNamespace)]
System\Web\Services\Discovery\ContractReference.cs (1)
27[XmlRoot("contractRef", Namespace = ContractReference.Namespace)]
System\Web\Services\Discovery\DiscoveryDocument.cs (1)
21[XmlRoot("discovery", Namespace = DiscoveryDocument.Namespace)]
System\Web\Services\Discovery\DiscoveryDocumentReference.cs (1)
27[XmlRoot("discoveryRef", Namespace = DiscoveryDocument.Namespace)]
System\Web\Services\Discovery\DynamicDiscoveryDocument.cs (1)
18[XmlRoot("dynamicDiscovery", Namespace = DynamicDiscoveryDocument.Namespace)]
System\Web\Services\Discovery\SchemaReference.cs (1)
27[XmlRoot("schemaRef", Namespace = SchemaReference.Namespace)]
System\Web\Services\Discovery\SoapBinding.cs (1)
18[XmlRoot("soap", Namespace = SoapBinding.Namespace)]
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\Configuration.cs (1)
28authorizedTypeAttributes.XmlRoot = new XmlRootAttribute("authorizedType");
System.Xml (1)
System\Xml\Schema\XmlSchema.cs (1)
28[XmlRoot("schema", Namespace=XmlSchema.Namespace)]
56 references to XmlRootAttribute
PresentationFramework (2)
src\Framework\MS\Internal\Annotations\Serializer.cs (2)
55_attribute = obj as XmlRootAttribute; 111private XmlRootAttribute _attribute;
System.Data (28)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1019dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(XmlRootAttribute).FullName, Primitive(stDataSetClassName)));
fx\src\data\System\Data\Common\DataStorage.cs (2)
252public virtual object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib) { 257public virtual void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib) {
fx\src\data\System\Data\Common\ObjectStorage.cs (17)
301public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib) { 409public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib) { 453private static Dictionary<KeyValuePair<Type,XmlRootAttribute>, XmlSerializer> _tempAssemblyCache; 483internal static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute) 486KeyValuePair<Type,XmlRootAttribute> key = new KeyValuePair<Type,XmlRootAttribute>(type,attribute); 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>( 523key = new KeyValuePair<Type,XmlRootAttribute>(type, new XmlRootAttribute()); 538private class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>> 540internal static readonly IEqualityComparer<KeyValuePair<Type,XmlRootAttribute>> Default = new TempAssemblyComparer(); 544public bool Equals(KeyValuePair<Type,XmlRootAttribute> x, KeyValuePair<Type,XmlRootAttribute> y) 555public int GetHashCode(KeyValuePair<Type,XmlRootAttribute> obj)
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (2)
159public override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib) { 195public override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib) {
fx\src\data\System\Data\DataColumn.cs (2)
1719internal object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib) { 1731internal void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib) {
fx\src\data\System\Data\XmlDataLoader.cs (1)
1096XmlRootAttribute xmlAttrib = null; // Might need this attribute for XmlSerializer
fx\src\data\System\Data\XMLDiffLoader.cs (1)
366XmlRootAttribute xmlAttrib = null;
fx\src\data\System\Data\xmlsaver.cs (2)
2266XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName); 2638XmlRootAttribute xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Runtime.Serialization (3)
System\Runtime\Serialization\Globals.cs (1)
622typeOfXmlRootAttribute = typeof(XmlRootAttribute);
System\Runtime\Serialization\XmlDataContract.cs (2)
225XmlRootAttribute xmlRootAttribute = (XmlRootAttribute)xmlRootAttributes[0];
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
54XmlRootAttribute xmlRoot = new XmlRootAttribute();
System.Web.Services (3)
System\Web\Services\Configuration\WebServicesSection.cs (3)
95object[] xmlElementAttribs = discoveryReferenceType.GetCustomAttributes(typeof(XmlRootAttribute), false); 99string name = ((XmlRootAttribute)xmlElementAttribs[0]).ElementName; 100string ns = ((XmlRootAttribute)xmlElementAttribs[0]).Namespace;
System.Xml (19)
System\Xml\Serialization\XmlAttributes.cs (4)
44XmlRootAttribute xmlRoot; 134else if (attrs[i] is XmlRootAttribute) { 135this.xmlRoot = (XmlRootAttribute)attrs[i]; 260public XmlRootAttribute XmlRoot {
System\Xml\Serialization\XmlCodeExporter.cs (1)
167string rootAttrName = typeof(XmlRootAttribute).FullName;
System\Xml\Serialization\XmlMapping.cs (3)
106internal static string GenerateKey(Type type, XmlRootAttribute root, string ns) { 108root = (XmlRootAttribute)XmlAttributes.GetAttr(type, typeof(XmlRootAttribute));
System\Xml\Serialization\XmlReflectionImporter.cs (3)
148public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute root) { 156public XmlTypeMapping ImportTypeMapping(Type type, XmlRootAttribute root, string defaultNamespace) { 234ElementAccessor ImportElement(TypeModel model, XmlRootAttribute root, string defaultNamespace, RecursionLimiter limiter) {
System\Xml\Serialization\XmlSerializer.cs (4)
139public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) : 147public XmlSerializer(Type type, XmlRootAttribute root) : this(type, null, new Type[0], root, null, null) { 220public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location) 231public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace, string location, Evidence evidence) {
System\Xml\Serialization\XmlSerializerFactory.cs (4)
36public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, string defaultNamespace) { 44public XmlSerializer CreateSerializer(Type type, XmlRootAttribute root) { 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) {