26 writes to Namespace
System.Private.Xml (26)
System\Xml\Serialization\Mappings.cs (2)
1061this.Namespace = ns; 1070this.Namespace = xsiType.Namespace;
System\Xml\Serialization\SchemaImporter.cs (1)
118mapping.Namespace = XmlSchema.Namespace;
System\Xml\Serialization\SoapReflectionImporter.cs (7)
233mapping.Namespace = XmlSchema.Namespace; 288mapping.Namespace = baseMapping.Namespace; 314mapping.Namespace = typeNs; 524mapping.Namespace = ns; 550mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace; 571mapping.Namespace = typeNs; 642members.Namespace = ns;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
559serializableMapping.Namespace = qname.Namespace; 640mapping.Namespace = XmlSchema.Namespace; 686mapping.Namespace = baseMapping.Namespace; 747mapping.Namespace = typeNs; 1011mapping.Namespace = defaultNs; 1088mapping.Namespace = ns; 1181mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace; 1204mapping.Namespace = typeNs;
System\Xml\Serialization\XmlSchemaImporter.cs (8)
46mapping.Namespace = XmlSchema.Namespace; 559structMapping.Namespace = typeNs; 615structMapping.Namespace = typeNs; 1285arrayMapping.Namespace = ns; 1747enumMapping.Namespace = typeNs; 1803enumMapping.Namespace = typeNs; 1833mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace; 1849mapping.Namespace = mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : ns;
99 references to Namespace
System.Private.Xml (99)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (7)
44mapping.Namespace!, 913ReadReferencingElement(mapping.TypeName, mapping.Namespace, out fixup!.Ids![fixupIndex]) 914: ReadReferencedElement(mapping.TypeName, mapping.Namespace); 1086rre = ReadReferencingElement(arrayMapping.TypeName, arrayMapping.Namespace, out fixup!.Ids![fixupIndex]); 1090rre = ReadReferencedElement(arrayMapping.TypeName, arrayMapping.Namespace); 1337throw CreateAbstractTypeException(structMapping.TypeName!, structMapping.Namespace); 1563throw CreateAbstractTypeException(structMapping.TypeName!, structMapping.Namespace);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (8)
51mapping.Namespace, 52CreateXmlSerializationWriteCallback(mapping, mapping.TypeName!, mapping.Namespace, mapping.TypeDesc.IsNullable) 319string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 487WriteNullableQualifiedNameEncoded(name, ns, o, new XmlQualifiedName(mapping.TypeName, mapping.Namespace)); 491WriteElementQualifiedName(name, ns, o, new XmlQualifiedName(mapping.TypeName, mapping.Namespace)); 566WriteXsiType(mapping.TypeName!, mapping.Namespace); 738WriteXsiType(mapping.TypeName!, mapping.Namespace); 960xmlQualifiedName = new XmlQualifiedName(mapping.TypeName, mapping.Namespace);
System\Xml\Serialization\SoapReflectionImporter.cs (15)
89element.Namespace = element.Mapping.Namespace ?? defaultNamespace; 129element.Namespace = element.Mapping.Namespace ?? ns; 261TypeMapping? existingMapping = (TypeMapping?)_nullables[baseMapping.TypeName!, baseMapping.Namespace]; 276throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace)); 281throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace)); 288mapping.Namespace = baseMapping.Namespace; 290_nullables.Add(baseMapping.TypeName, mapping.Namespace, mapping); 395MemberMapping? member = ImportFieldMapping(fieldModel, memberAttrs, mapping.Namespace!, limiter); 430CreateElementAccessor(itemTypeMapping, mapping.Namespace) }; 436ArrayMapping? existingMapping = (ArrayMapping?)_types[mapping.TypeName!, mapping.Namespace]; 447_types[mapping.TypeName!, mapping.Namespace] = mapping; 451_types.Add(mapping.TypeName, mapping.Namespace, mapping); 472itemTypeNamespace = itemTypeMapping.Namespace!; 491itemTypeNamespace = itemTypeMapping.Namespace!; 497itemTypeNamespace = itemTypeMapping.Namespace!;
System\Xml\Serialization\XmlMemberMapping.cs (1)
79get { return Accessor!.Mapping != null ? Accessor.Mapping.Namespace : null; }
System\Xml\Serialization\XmlMembersMapping.cs (1)
49get { return Accessor.Mapping!.Namespace; }
System\Xml\Serialization\XmlReflectionImporter.cs (17)
355ArrayMapping? existingMapping = mapping.IsAnonymousType ? null : (ArrayMapping?)_types[existing.Mapping.TypeName!, existing.Mapping.Namespace]; 365_types[existing.Mapping.TypeName!, existing.Mapping.Namespace] = mapping; 653existingMapping = (TypeMapping?)_nullables[baseMapping.TypeName!, baseMapping.Namespace]; 674throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace)); 679throw new InvalidOperationException(SR.Format(SR.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc!.FullName, typeDesc.Name, existingMapping.Namespace)); 686mapping.Namespace = baseMapping.Namespace; 690_nullables.Add(baseMapping.TypeName, baseMapping.Namespace, mapping); 807StructMapping baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.Namespace, openModel, null, limiter); 861MemberMapping? member = ImportFieldMapping(model, fieldModel, memberAttrs, mapping.Namespace, limiter); 1039ns = itemTypeMapping.Namespace; 1054ns = itemTypeMapping.Namespace == XmlSchema.Namespace ? defaultNs : itemTypeMapping.Namespace; 1107mapping.Elements[i] = ReconcileLocalAccessor(mapping.Elements[i], mapping.Namespace); 1115ArrayMapping? existingMapping = (ArrayMapping?)_types[mapping.TypeName, mapping.Namespace]; 1127_types[mapping.TypeName, mapping.Namespace] = mapping; 1134_types.Add(mapping.TypeName, mapping.Namespace, mapping); 2009string? choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.Substring(0, colon);
System\Xml\Serialization\XmlSchemaExporter.cs (20)
407AddSchemaImport(mapping.Namespace, ns); 572qname = new XmlQualifiedName(type.Name, mapping.Namespace); 603CheckForDuplicateType(currentMapping, currentMapping.Namespace); 608AddSchemaItem(type, mapping.Namespace, ns); 613ExportElementAccessors(seq, mapping.Elements!, true, false, mapping.Namespace); 633AddSchemaImport(mapping.Namespace, ns); 643element.SchemaTypeName = new XmlQualifiedName(type.Name, mapping.Namespace); 950ExportArrayMapping((ArrayMapping)mapping, mapping.Namespace, null); 954ExportSpecialMapping((SerializableMapping)mapping, mapping.Namespace, false, null); 976CheckForDuplicateType(mapping, mapping.Namespace); 981AddSchemaItem(type, mapping.Namespace, ns); 996extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.Namespace, null); 1003extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.Namespace, null); 1011ExportTypeMembers(type, mapping.Members!, mapping.TypeName!, mapping.Namespace, mapping.HasSimpleContent, openModel); 1020AddSchemaImport(mapping.Namespace, ns); 1031XmlQualifiedName qname = new XmlQualifiedName(type.Name, mapping.Namespace); 1137if (derived.IncludeInSchema) ExportStructMapping(derived, derived.Namespace, null); 1147CheckForDuplicateType(mapping, mapping.Namespace); 1153AddSchemaItem(dataType, mapping.Namespace, ns); 1180AddSchemaImport(mapping.Namespace, ns);
System\Xml\Serialization\XmlSerializationReader.cs (9)
2405WriteID(mapping.Namespace); 3063WriteQNameEqual("xsiType", derived.TypeName, derived.Namespace); 3100WriteQNameEqual("xsiType", enumMapping.TypeName, enumMapping.Namespace); 3122WriteQNameEqual("xsiType", arrayMapping.TypeName, arrayMapping.Namespace); 3258WriteQNameEqual("xsiType", structMapping.TypeName, structMapping.Namespace); 3291WriteQuotedCSharpString(structMapping.Namespace); 3441WriteQuotedCSharpString(structMapping.Namespace); 4525WriteID(arrayMapping.Namespace); 4743WriteID(mapping.Namespace);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
1136WriteQNameEqual("xsiType", derived.TypeName, derived.Namespace); 1179WriteQNameEqual("xsiType", enumMapping.TypeName, enumMapping.Namespace); 1242WriteQNameEqual("xsiType", arrayMapping.TypeName, arrayMapping.Namespace); 1426WriteQNameEqual("xsiType", structMapping.TypeName, structMapping.Namespace); 1505ilg.Ldstr(GetCSharpString(structMapping.Namespace));
System\Xml\Serialization\XmlSerializationWriter.cs (9)
2348WriteQuotedCSharpString(typeMapping.Namespace); 2389WriteQuotedCSharpString(mapping.Namespace); 2518WriteQuotedCSharpString(mapping.Namespace); 2961WriteQuotedCSharpString(mapping.Namespace); 3032WriteQuotedCSharpString(mapping.Namespace); 3061WriteQuotedCSharpString(mapping.Namespace); 3176WriteQuotedCSharpString(mapping.Namespace); 3913string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 4466ReadOnlySpan<char> choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.AsSpan(0, colon);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
260ilg.Ldstr(GetCSharpString(mapping.Namespace)); 823ilg.Ldstr(GetCSharpString(mapping.Namespace)); 889ilg.Ldstr(GetCSharpString(mapping.Namespace)); 1063ilg.Ldstr(GetCSharpString(mapping.Namespace)); 1899string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 2259string? choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.Substring(0, colon);
System\Xml\Serialization\XmlTypeMapping.cs (1)
63return Mapping!.Namespace;