2 overrides of TopLevelElementNamespace
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\PrimitiveDataContract.cs (1)
47public override XmlDictionaryString? TopLevelElementNamespace
System\Runtime\Serialization\XmlDataContract.cs (1)
72public override XmlDictionaryString? TopLevelElementNamespace
13 references to TopLevelElementNamespace
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\DataContractSerializer.cs (1)
475expectedNs = RootContract.TopLevelElementNamespace;
System\Runtime\Serialization\SchemaExporter.cs (2)
106if (schema == null || dataContract.XmlName.Namespace != dataContract.TopLevelElementNamespace!.Value) 107schema = GetSchema(dataContract.TopLevelElementNamespace!.Value);
System\Runtime\Serialization\XmlObjectSerializer.cs (4)
228contract.WriteRootElement(writer, contract.TopLevelElementName!, contract.TopLevelElementNamespace); 412if (reader.IsStartElement(contract.TopLevelElementName!, contract.TopLevelElementNamespace!)) 420if (reader.IsStartElement(classContract.TopLevelElementName!, classContract.TopLevelElementNamespace!)) 427if (reader.IsStartElement(objectContract.TopLevelElementName!, objectContract.TopLevelElementNamespace!))
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
113string prefix = SetNamespace(rootContract.TopLevelElementNamespace!.Value);
System\Runtime\Serialization\XsdDataContractExporter.cs (1)
236return new XmlQualifiedName(dataContract.TopLevelElementName!.Value, dataContract.TopLevelElementNamespace!.Value);
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
1316(xmlDataContract.TopLevelElementNamespace != null && xmlDataContract.TopLevelElementNamespace.Value != xmlDataContract.XmlName.Namespace); 1326if (xmlDataContract.TopLevelElementNamespace != null) 1328xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value)));