28 writes to Namespace
dotnet-svcutil-lib (28)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
1130
this.
Namespace
= ns;
1139
this.
Namespace
= xsiType.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (1)
188
mapping.
Namespace
= XmlSchema.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (7)
265
mapping.
Namespace
= XmlSchema.Namespace;
318
mapping.
Namespace
= baseMapping.Namespace;
343
mapping.
Namespace
= typeNs;
554
mapping.
Namespace
= ns;
580
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
600
mapping.
Namespace
= typeNs;
671
members.
Namespace
= ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (2)
328
structMapping.
Namespace
= typeNs;
633
enumMapping.
Namespace
= typeNs;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (8)
552
serializableMapping.
Namespace
= qname.Namespace;
642
mapping.
Namespace
= XmlSchema.Namespace;
687
mapping.
Namespace
= baseMapping.Namespace;
746
mapping.
Namespace
= typeNs;
1006
mapping.
Namespace
= defaultNs;
1086
mapping.
Namespace
= ns;
1178
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
1200
mapping.
Namespace
= typeNs;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (8)
83
mapping.
Namespace
= XmlSchema.Namespace;
664
structMapping.
Namespace
= typeNs;
718
structMapping.
Namespace
= typeNs;
1387
arrayMapping.
Namespace
= ns;
1849
enumMapping.
Namespace
= typeNs;
1904
enumMapping.
Namespace
= typeNs;
1933
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : UrtTypes.Namespace;
1949
mapping.
Namespace
= mapping.TypeDesc.IsXsdType ? XmlSchema.Namespace : ns;
110 references to Namespace
dotnet-svcutil-lib (110)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
208
EnsureTypesExported(arrayMapping.Elements, arrayMapping.
Namespace
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
116
AddTypeMetadata(codeClass.CustomAttributes, typeof(SoapTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.
Namespace
, mapping.IncludeInSchema);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (17)
117
element.Namespace = element.Mapping.
Namespace
== null ? defaultNamespace : element.Mapping.
Namespace
;
164
element.Namespace = element.Mapping.
Namespace
== null ? ns : element.Mapping.
Namespace
;
291
TypeMapping existingMapping = (TypeMapping)_nullables[baseMapping.TypeName, baseMapping.
Namespace
];
306
throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
311
throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
318
mapping.Namespace = baseMapping.
Namespace
;
320
_nullables.Add(baseMapping.TypeName, mapping.
Namespace
, mapping);
424
MemberMapping member = ImportFieldMapping(fieldModel, memberAttrs, mapping.
Namespace
, limiter);
459
CreateElementAccessor(itemTypeMapping, mapping.
Namespace
) };
465
ArrayMapping existingMapping = (ArrayMapping)_types[mapping.TypeName, mapping.
Namespace
];
476
_types[mapping.TypeName, mapping.
Namespace
] = mapping;
480
_types.Add(mapping.TypeName, mapping.
Namespace
, mapping);
501
itemTypeNamespace = itemTypeMapping.
Namespace
;
520
itemTypeNamespace = itemTypeMapping.
Namespace
;
526
itemTypeNamespace = itemTypeMapping.
Namespace
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (24)
234
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
240
AddSchemaItem(type, mapping.
Namespace
, ns);
241
AddSchemaImport(Soap.Encoding, mapping.
Namespace
);
242
AddSchemaImport(Wsdl.Namespace, mapping.
Namespace
);
245
XmlQualifiedName qname = ExportTypeMapping(mapping.Elements[0].Mapping, mapping.
Namespace
);
265
AddSchemaImport(qname.Namespace, mapping.
Namespace
);
269
AddSchemaImport(mapping.
Namespace
, ns);
271
return new XmlQualifiedName(mapping.TypeName, mapping.
Namespace
);
324
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
328
AddSchemaItem(type, mapping.
Namespace
, ns);
334
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
);
339
ExportTypeMembers(type, mapping.Members, mapping.
Namespace
);
344
AddSchemaImport(mapping.
Namespace
, ns);
346
return new XmlQualifiedName(type.Name, mapping.
Namespace
);
354
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
358
AddSchemaItem(type, mapping.
Namespace
, ns);
359
ExportTypeMembers(type, mapping.Members, mapping.
Namespace
);
363
AddSchemaImport(mapping.
Namespace
, ns);
365
return new XmlQualifiedName(type.Name, mapping.
Namespace
);
402
if (derived.IncludeInSchema) ExportStructMapping(derived, mapping.TypeDesc.IsRoot ? null : mapping.
Namespace
);
411
CheckForDuplicateType(mapping.TypeName, mapping.
Namespace
);
415
AddSchemaItem(dataType, mapping.
Namespace
, ns);
442
AddSchemaImport(mapping.
Namespace
, ns);
444
return new XmlQualifiedName(mapping.TypeName, mapping.
Namespace
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (2)
95
accessor.Namespace = typeMapping.
Namespace
!= null ? typeMapping.
Namespace
: ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (10)
119
if (mapping.IsReference && mapping.
Namespace
!= Soap.Encoding)
164
AddTypeMetadata(codeClass.CustomAttributes, typeof(XmlTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.
Namespace
, mapping.IncludeInSchema);
462
AddWarningComment(comments, string.Format(ResXml.XmlNotKnownDefaultValue, extension.GetType().FullName, attributeName, (string)defaultValue, mapping.TypeName, mapping.
Namespace
));
615
ExportProperty(codeClass, mapping.Members[i], mapping.
Namespace
, mapping.Scope, ctor);
622
ExportMember(codeClass, mapping.Members[i], mapping.
Namespace
, ctor);
630
EnsureTypesExported(mapping.Members[i].Elements, mapping.
Namespace
);
631
EnsureTypesExported(mapping.Members[i].Attribute, mapping.
Namespace
);
632
EnsureTypesExported(mapping.Members[i].Text, mapping.
Namespace
);
636
ExportType(mapping.BaseMapping, null, mapping.
Namespace
, null, false);
648
ExportType(derived, mapping.
Namespace
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
90
get { return Accessor.Mapping != null ? Accessor.Mapping.
Namespace
: null; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMembersMapping.cs (1)
53
get { return Accessor.Mapping.
Namespace
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (17)
349
ArrayMapping existingMapping = mapping.IsAnonymousType ? null : (ArrayMapping)_types[existing.Mapping.TypeName, existing.Mapping.
Namespace
];
359
_types[existing.Mapping.TypeName, existing.Mapping.
Namespace
] = mapping;
654
existingMapping = (TypeMapping)_nullables[baseMapping.TypeName, baseMapping.
Namespace
];
675
throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
680
throw new InvalidOperationException(string.Format(ResXml.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.Name, existingMapping.
Namespace
));
687
mapping.Namespace = baseMapping.
Namespace
;
691
_nullables.Add(baseMapping.TypeName, baseMapping.
Namespace
, mapping);
804
StructMapping baseMapping = ImportStructLikeMapping((StructModel)baseModel, mapping.
Namespace
, openModel, null, limiter);
858
MemberMapping member = ImportFieldMapping(model, fieldModel, memberAttrs, mapping.
Namespace
, limiter);
1034
ns = itemTypeMapping.
Namespace
;
1049
ns = itemTypeMapping.
Namespace
== XmlSchema.Namespace ? defaultNs : itemTypeMapping.
Namespace
;
1104
mapping.Elements[i] = ReconcileLocalAccessor(mapping.Elements[i], mapping.
Namespace
);
1112
ArrayMapping existingMapping = (ArrayMapping)_types[mapping.TypeName, mapping.
Namespace
];
1124
_types[mapping.TypeName, mapping.
Namespace
] = mapping;
1131
_types.Add(mapping.TypeName, mapping.
Namespace
, mapping);
1998
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (20)
446
AddSchemaImport(mapping.
Namespace
, ns);
611
qname = new XmlQualifiedName(type.Name, mapping.
Namespace
);
642
CheckForDuplicateType(currentMapping, currentMapping.
Namespace
);
647
AddSchemaItem(type, mapping.
Namespace
, ns);
652
ExportElementAccessors(seq, mapping.Elements, true, false, mapping.
Namespace
);
672
AddSchemaImport(mapping.
Namespace
, ns);
682
element.SchemaTypeName = new XmlQualifiedName(type.Name, mapping.
Namespace
);
993
ExportArrayMapping((ArrayMapping)mapping, mapping.
Namespace
, null);
997
ExportSpecialMapping((SerializableMapping)mapping, mapping.
Namespace
, false, null);
1019
CheckForDuplicateType(mapping, mapping.
Namespace
);
1024
AddSchemaItem(type, mapping.
Namespace
, ns);
1039
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
, null);
1046
extension.BaseTypeName = ExportStructMapping(mapping.BaseMapping, mapping.
Namespace
, null);
1054
ExportTypeMembers(type, mapping.Members, mapping.TypeName, mapping.
Namespace
, mapping.HasSimpleContent, openModel);
1063
AddSchemaImport(mapping.
Namespace
, ns);
1074
XmlQualifiedName qname = new XmlQualifiedName(type.Name, mapping.
Namespace
);
1180
if (derived.IncludeInSchema) ExportStructMapping(derived, derived.
Namespace
, null);
1190
CheckForDuplicateType(mapping, mapping.
Namespace
);
1196
AddSchemaItem(dataType, mapping.
Namespace
, ns);
1223
AddSchemaImport(mapping.
Namespace
, ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (9)
1622
WriteQuotedCSharpString(typeMapping.
Namespace
);
1661
WriteQuotedCSharpString(mapping.
Namespace
);
1787
WriteQuotedCSharpString(mapping.
Namespace
);
2228
WriteQuotedCSharpString(mapping.
Namespace
);
2298
WriteQuotedCSharpString(mapping.
Namespace
);
2327
WriteQuotedCSharpString(mapping.
Namespace
);
2441
WriteQuotedCSharpString(mapping.
Namespace
);
3172
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.
Namespace
) : "");
3680
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
261
ilg.Ldstr(mapping.
Namespace
);
853
ilg.Ldstr(mapping.
Namespace
);
929
ilg.Ldstr(mapping.
Namespace
);
1118
ilg.Ldstr(mapping.
Namespace
);
2011
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.
Namespace
) : "");
2394
string choiceNs = colon < 0 ? choiceMapping.
Namespace
: xmlName.Substring(0, colon);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlTypeMapping.cs (1)
58
get { return Mapping.
Namespace
; }