28 writes to Namespace
System.Xml (28)
System\Xml\Serialization\Mappings.cs (2)
953
this.
Namespace
= ns;
961
this.
Namespace
= xsiType.Namespace;
System\Xml\Serialization\SchemaImporter.cs (1)
170
mapping.
Namespace
= XmlSchema.Namespace;
System\Xml\Serialization\SoapReflectionImporter.cs (7)
243
mapping.
Namespace
= XmlSchema.Namespace;
287
mapping.
Namespace
= baseMapping.Namespace;
310
mapping.
Namespace
= typeNs;
496
mapping.
Namespace
= ns;
517
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
535
mapping.
Namespace
= typeNs;
596
members.
Namespace
= ns;
System\Xml\Serialization\SoapSchemaImporter.cs (2)
299
structMapping.
Namespace
= typeNs;
561
enumMapping.
Namespace
= typeNs;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
486
serializableMapping.
Namespace
= qname.Namespace;
565
mapping.
Namespace
= XmlSchema.Namespace;
604
mapping.
Namespace
= baseMapping.Namespace;
658
mapping.
Namespace
= typeNs;
879
mapping.
Namespace
= defaultNs;
948
mapping.
Namespace
= ns;
1029
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
1049
mapping.
Namespace
= typeNs;
System\Xml\Serialization\XmlSchemaImporter.cs (8)
82
mapping.
Namespace
= XmlSchema.Namespace;
582
structMapping.
Namespace
= typeNs;
630
structMapping.
Namespace
= typeNs;
1203
arrayMapping.
Namespace
= ns;
1610
enumMapping.
Namespace
= typeNs;
1658
enumMapping.
Namespace
= typeNs;
1684
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
1697
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : ns;
124 references to Namespace
System.Xml (124)
System\Xml\Serialization\CodeExporter.cs (1)
186
EnsureTypesExported(arrayMapping.Elements, arrayMapping.
Namespace
);
System\Xml\Serialization\SoapCodeExporter.cs (1)
114
AddTypeMetadata(codeClass.CustomAttributes, typeof(SoapTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.
Namespace
, mapping.IncludeInSchema);
System\Xml\Serialization\SoapReflectionImporter.cs (17)
112
element.Namespace = element.Mapping.
Namespace
== null ? defaultNamespace : element.Mapping.
Namespace
;
155
element.Namespace = element.Mapping.
Namespace
== null ? ns : element.Mapping.
Namespace
;
265
TypeMapping existingMapping = (TypeMapping)nullables[baseMapping.TypeName, baseMapping.
Namespace
];
276
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
280
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
287
mapping.Namespace = baseMapping.
Namespace
;
289
nullables.Add(baseMapping.TypeName, mapping.
Namespace
, mapping);
381
MemberMapping member = ImportFieldMapping(fieldModel, memberAttrs, mapping.
Namespace
, limiter);
414
CreateElementAccessor(itemTypeMapping, mapping.
Namespace
) };
420
ArrayMapping existingMapping = (ArrayMapping)types[mapping.TypeName, mapping.
Namespace
];
429
types[mapping.TypeName, mapping.
Namespace
] = mapping;
433
types.Add(mapping.TypeName, mapping.
Namespace
, mapping);
452
itemTypeNamespace = itemTypeMapping.
Namespace
;
467
itemTypeNamespace = itemTypeMapping.
Namespace
;
472
itemTypeNamespace = itemTypeMapping.
Namespace
;
System\Xml\Serialization\SoapSchemaExporter.cs (24)
201
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
207
AddSchemaItem(type, mapping.
Namespace
, ns);
208
AddSchemaImport(Soap.Encoding, mapping.
Namespace
);
209
AddSchemaImport(Wsdl.Namespace, mapping.
Namespace
);
212
XmlQualifiedName qname = ExportTypeMapping(mapping.Elements[0].Mapping, mapping.
Namespace
);
231
AddSchemaImport(qname.Namespace, mapping.
Namespace
);
234
AddSchemaImport(mapping.
Namespace
, ns);
236
return new XmlQualifiedName(mapping.TypeName, mapping.
Namespace
);
281
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
285
AddSchemaItem(type, mapping.
Namespace
, ns);
290
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
);
295
ExportTypeMembers(type, mapping.Members, mapping.
Namespace
);
299
AddSchemaImport(mapping.
Namespace
, ns);
301
return new XmlQualifiedName(type.Name, mapping.
Namespace
);
307
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
311
AddSchemaItem(type, mapping.
Namespace
, ns);
312
ExportTypeMembers(type, mapping.Members, mapping.
Namespace
);
315
AddSchemaImport(mapping.
Namespace
, ns);
317
return new XmlQualifiedName(type.Name, mapping.
Namespace
);
346
if (derived.IncludeInSchema) ExportStructMapping(derived, mapping.TypeDesc.IsRoot ? null : mapping.
Namespace
);
353
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
357
AddSchemaItem(dataType, mapping.
Namespace
, ns);
380
AddSchemaImport(mapping.
Namespace
, ns);
382
return new XmlQualifiedName(mapping.TypeName, mapping.
Namespace
);
System\Xml\Serialization\SoapSchemaImporter.cs (2)
96
accessor.Namespace = typeMapping.
Namespace
!= null ? typeMapping.
Namespace
: ns;
System\Xml\Serialization\XmlCodeExporter.cs (10)
110
if (mapping.IsReference && mapping.
Namespace
!= Soap.Encoding)
150
AddTypeMetadata(codeClass.CustomAttributes, typeof(XmlTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.
Namespace
, mapping.IncludeInSchema);
406
AddWarningComment(comments, Res.GetString(Res.XmlNotKnownDefaultValue, extension.GetType().FullName, attributeName, (string)defaultValue, mapping.TypeName, mapping.
Namespace
));
534
ExportProperty(codeClass, mapping.Members[i], mapping.
Namespace
, mapping.Scope, ctor);
539
ExportMember(codeClass, mapping.Members[i], mapping.
Namespace
, ctor);
546
EnsureTypesExported(mapping.Members[i].Elements, mapping.
Namespace
);
547
EnsureTypesExported(mapping.Members[i].Attribute, mapping.
Namespace
);
548
EnsureTypesExported(mapping.Members[i].Text, mapping.
Namespace
);
552
ExportType(mapping.BaseMapping, null, mapping.
Namespace
, null, false);
563
ExportType(derived, mapping.
Namespace
);
System\Xml\Serialization\XmlMemberMapping.cs (1)
82
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)
314
ArrayMapping existingMapping = mapping.IsAnonymousType ? null : (ArrayMapping)types[existing.Mapping.TypeName, existing.Mapping.
Namespace
];
323
types[existing.Mapping.TypeName, existing.Mapping.
Namespace
] = mapping;
576
existingMapping = (TypeMapping)nullables[baseMapping.TypeName, baseMapping.
Namespace
];
593
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
597
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
604
mapping.Namespace = baseMapping.
Namespace
;
608
nullables.Add(baseMapping.TypeName, baseMapping.
Namespace
, mapping);
709
StructMapping baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.
Namespace
, openModel, null, limiter);
754
MemberMapping member = ImportFieldMapping(model, fieldModel, memberAttrs, mapping.
Namespace
, limiter);
903
ns = itemTypeMapping.
Namespace
;
915
ns = itemTypeMapping.
Namespace
== XmlSchema.Namespace ? defaultNs : itemTypeMapping.
Namespace
;
964
mapping.Elements[i] = ReconcileLocalAccessor(mapping.Elements[i], mapping.
Namespace
);
972
ArrayMapping existingMapping = (ArrayMapping)types[mapping.TypeName, mapping.
Namespace
];
982
types[mapping.TypeName, mapping.
Namespace
] = mapping;
989
types.Add(mapping.TypeName, mapping.
Namespace
, mapping);
1747
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
System\Xml\Serialization\XmlSchemaExporter.cs (20)
388
AddSchemaImport(mapping.
Namespace
, ns);
528
qname = new XmlQualifiedName(type.Name, mapping.
Namespace
);
553
CheckForDuplicateType(currentMapping, currentMapping.
Namespace
);
557
AddSchemaItem(type, mapping.
Namespace
, ns);
562
ExportElementAccessors(seq, mapping.Elements, true, false, mapping.
Namespace
);
578
AddSchemaImport(mapping.
Namespace
, ns);
585
element.SchemaTypeName = new XmlQualifiedName(type.Name, mapping.
Namespace
);
849
ExportArrayMapping((ArrayMapping) mapping, mapping.
Namespace
, null);
852
ExportSpecialMapping((SerializableMapping)mapping, mapping.
Namespace
, false, null);
870
CheckForDuplicateType(mapping, mapping.
Namespace
);
874
AddSchemaItem(type, mapping.
Namespace
, ns);
886
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
, null);
892
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
, null);
900
ExportTypeMembers(type, mapping.Members, mapping.TypeName, mapping.
Namespace
, mapping.HasSimpleContent, openModel);
907
AddSchemaImport(mapping.
Namespace
, ns);
916
XmlQualifiedName qname = new XmlQualifiedName(type.Name, mapping.
Namespace
);
1002
if (derived.IncludeInSchema) ExportStructMapping(derived, derived.
Namespace
, null);
1010
CheckForDuplicateType(mapping, mapping.
Namespace
);
1015
AddSchemaItem(dataType, mapping.
Namespace
, ns);
1038
AddSchemaImport(mapping.
Namespace
, ns);
System\Xml\Serialization\XmlSerializationReader.cs (9)
2269
WriteID(mapping.
Namespace
);
2867
WriteQNameEqual("xsiType", derived.TypeName, derived.
Namespace
);
2900
WriteQNameEqual("xsiType", mapping.TypeName, mapping.
Namespace
);
2921
WriteQNameEqual("xsiType", mapping.TypeName, mapping.
Namespace
);
3047
WriteQNameEqual("xsiType", structMapping.TypeName, structMapping.
Namespace
);
3076
WriteQuotedCSharpString(structMapping.
Namespace
);
3211
WriteQuotedCSharpString(structMapping.
Namespace
);
4161
WriteID(arrayMapping.
Namespace
);
4353
WriteID(mapping.
Namespace
);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
1163
WriteQNameEqual("xsiType", derived.TypeName, derived.
Namespace
);
1202
WriteQNameEqual("xsiType", mapping.TypeName, mapping.
Namespace
);
1274
WriteQNameEqual("xsiType", mapping.TypeName, mapping.
Namespace
);
1454
WriteQNameEqual("xsiType", structMapping.TypeName, structMapping.
Namespace
);
1538
ilg.Ldstr(structMapping.
Namespace
);
System\Xml\Serialization\XmlSerializationWriter.cs (9)
1390
WriteQuotedCSharpString(typeMapping.
Namespace
);
1425
WriteQuotedCSharpString(mapping.
Namespace
);
1533
WriteQuotedCSharpString(mapping.
Namespace
);
1920
WriteQuotedCSharpString(mapping.
Namespace
);
1983
WriteQuotedCSharpString(mapping.
Namespace
);
2011
WriteQuotedCSharpString(mapping.
Namespace
);
2113
WriteQuotedCSharpString(mapping.
Namespace
);
2748
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.
Namespace
) : "");
3206
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
235
ilg.Ldstr(mapping.
Namespace
);
778
ilg.Ldstr(mapping.
Namespace
);
853
ilg.Ldstr(mapping.
Namespace
);
1032
ilg.Ldstr(mapping.
Namespace
);
1847
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.
Namespace
) : "");
2187
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
System\Xml\Serialization\XmlTypeMapping.cs (1)
55
get { return Mapping.
Namespace
; }