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)
523
key = new KeyValuePair<Type,XmlRootAttribute>(type, new
XmlRootAttribute
());
fx\src\data\System\Data\DataSet.cs (1)
44
XmlRoot
("DataSet")
fx\src\data\System\Data\XmlDataLoader.cs (2)
1139
xmlAttrib = new
XmlRootAttribute
(dataReader.LocalName);
1143
xmlAttrib = new
XmlRootAttribute
(column.EncodedColumnName);
fx\src\data\System\Data\XMLDiffLoader.cs (2)
371
xmlAttrib = new
XmlRootAttribute
(row.LocalName);
375
xmlAttrib = new
XmlRootAttribute
(column.EncodedColumnName);
fx\src\data\System\Data\xmlsaver.cs (2)
2266
XmlRootAttribute xmlAttrib = new
XmlRootAttribute
(col.EncodedColumnName);
2638
XmlRootAttribute 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)
54
XmlRootAttribute 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)
28
authorizedTypeAttributes.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
;
111
private
XmlRootAttribute
_attribute;
System.Data (28)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1019
dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(
XmlRootAttribute
).FullName, Primitive(stDataSetClassName)));
fx\src\data\System\Data\Common\DataStorage.cs (2)
252
public virtual object ConvertXmlToObject(XmlReader xmlReader,
XmlRootAttribute
xmlAttrib) {
257
public virtual void ConvertObjectToXml(object value, XmlWriter xmlWriter,
XmlRootAttribute
xmlAttrib) {
fx\src\data\System\Data\Common\ObjectStorage.cs (17)
301
public override object ConvertXmlToObject(XmlReader xmlReader,
XmlRootAttribute
xmlAttrib) {
409
public override void ConvertObjectToXml(object value, XmlWriter xmlWriter,
XmlRootAttribute
xmlAttrib) {
453
private static Dictionary<KeyValuePair<Type,
XmlRootAttribute
>, XmlSerializer> _tempAssemblyCache;
483
internal static XmlSerializer GetXmlSerializer(Type type,
XmlRootAttribute
attribute)
486
KeyValuePair<Type,
XmlRootAttribute
> key = new KeyValuePair<Type,
XmlRootAttribute
>(type,attribute);
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>(
523
key = new KeyValuePair<Type,
XmlRootAttribute
>(type, new XmlRootAttribute());
538
private class TempAssemblyComparer : IEqualityComparer<KeyValuePair<Type,
XmlRootAttribute
>>
540
internal static readonly IEqualityComparer<KeyValuePair<Type,
XmlRootAttribute
>> Default = new TempAssemblyComparer();
544
public bool Equals(KeyValuePair<Type,
XmlRootAttribute
> x, KeyValuePair<Type,
XmlRootAttribute
> y)
555
public int GetHashCode(KeyValuePair<Type,
XmlRootAttribute
> obj)
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (2)
159
public override object ConvertXmlToObject(XmlReader xmlReader,
XmlRootAttribute
xmlAttrib) {
195
public override void ConvertObjectToXml(object value, XmlWriter xmlWriter,
XmlRootAttribute
xmlAttrib) {
fx\src\data\System\Data\DataColumn.cs (2)
1719
internal object ConvertXmlToObject(XmlReader xmlReader,
XmlRootAttribute
xmlAttrib) {
1731
internal void ConvertObjectToXml(object value, XmlWriter xmlWriter,
XmlRootAttribute
xmlAttrib) {
fx\src\data\System\Data\XmlDataLoader.cs (1)
1096
XmlRootAttribute
xmlAttrib = null; // Might need this attribute for XmlSerializer
fx\src\data\System\Data\XMLDiffLoader.cs (1)
366
XmlRootAttribute
xmlAttrib = null;
fx\src\data\System\Data\xmlsaver.cs (2)
2266
XmlRootAttribute
xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
2638
XmlRootAttribute
xmlAttrib = new XmlRootAttribute(col.EncodedColumnName);
System.Runtime.Serialization (3)
System\Runtime\Serialization\Globals.cs (1)
622
typeOfXmlRootAttribute = typeof(
XmlRootAttribute
);
System\Runtime\Serialization\XmlDataContract.cs (2)
225
XmlRootAttribute
xmlRootAttribute = (
XmlRootAttribute
)xmlRootAttributes[0];
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
54
XmlRootAttribute
xmlRoot = new XmlRootAttribute();
System.Web.Services (3)
System\Web\Services\Configuration\WebServicesSection.cs (3)
95
object[] xmlElementAttribs = discoveryReferenceType.GetCustomAttributes(typeof(
XmlRootAttribute
), false);
99
string name = ((
XmlRootAttribute
)xmlElementAttribs[0]).ElementName;
100
string ns = ((
XmlRootAttribute
)xmlElementAttribs[0]).Namespace;
System.Xml (19)
System\Xml\Serialization\XmlAttributes.cs (4)
44
XmlRootAttribute
xmlRoot;
134
else if (attrs[i] is
XmlRootAttribute
) {
135
this.xmlRoot = (
XmlRootAttribute
)attrs[i];
260
public
XmlRootAttribute
XmlRoot {
System\Xml\Serialization\XmlCodeExporter.cs (1)
167
string rootAttrName = typeof(
XmlRootAttribute
).FullName;
System\Xml\Serialization\XmlMapping.cs (3)
106
internal static string GenerateKey(Type type,
XmlRootAttribute
root, string ns) {
108
root = (
XmlRootAttribute
)XmlAttributes.GetAttr(type, typeof(
XmlRootAttribute
));
System\Xml\Serialization\XmlReflectionImporter.cs (3)
148
public XmlTypeMapping ImportTypeMapping(Type type,
XmlRootAttribute
root) {
156
public XmlTypeMapping ImportTypeMapping(Type type,
XmlRootAttribute
root, string defaultNamespace) {
234
ElementAccessor ImportElement(TypeModel model,
XmlRootAttribute
root, string defaultNamespace, RecursionLimiter limiter) {
System\Xml\Serialization\XmlSerializer.cs (4)
139
public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes,
XmlRootAttribute
root, string defaultNamespace) :
147
public XmlSerializer(Type type,
XmlRootAttribute
root) : this(type, null, new Type[0], root, null, null) {
220
public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes,
XmlRootAttribute
root, string defaultNamespace, string location)
231
public XmlSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes,
XmlRootAttribute
root, string defaultNamespace, string location, Evidence evidence) {
System\Xml\Serialization\XmlSerializerFactory.cs (4)
36
public XmlSerializer CreateSerializer(Type type, XmlAttributeOverrides overrides, Type[] extraTypes,
XmlRootAttribute
root, string defaultNamespace) {
44
public XmlSerializer CreateSerializer(Type type,
XmlRootAttribute
root) {
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) {