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