35 writes to Namespace
dotnet-svcutil-lib (35)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
171
newAccessor.
Namespace
= this.Namespace;
239
Namespace
= XmlReservedNs.NsXml;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
117
element.
Namespace
= element.Mapping.Namespace == null ? defaultNamespace : element.Mapping.Namespace;
164
element.
Namespace
= element.Mapping.Namespace == null ? ns : element.Mapping.Namespace;
730
attribute.
Namespace
= a.SoapAttribute == null || a.SoapAttribute.Namespace == null ? ns : a.SoapAttribute.Namespace;
745
element.
Namespace
= ns;
759
element.
Namespace
= ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
69
accessor.
Namespace
= name.Namespace;
95
accessor.
Namespace
= typeMapping.Namespace != null ? typeMapping.Namespace : ns;
157
accessor.
Namespace
= ns;
181
accessor.
Namespace
= ns;
437
arrayAccessor.
Namespace
= ns;
455
itemAccessor.
Namespace
= ns;
516
itemAccessor.
Namespace
= ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (12)
215
element.
Namespace
= ns;
1503
arrayItemElement.
Namespace
= xmlArrayItem.Namespace == null ? arrayElementNs : xmlArrayItem.Namespace;
1587
attribute.
Namespace
= a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace;
1634
element.
Namespace
= rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace;
1688
element.
Namespace
= anyNs == null ? ns : anyNs;
1731
arrayElement.
Namespace
= rpc ? null : a.XmlArray.Namespace == null ? ns : a.XmlArray.Namespace;
1768
attribute.
Namespace
= a.XmlAttribute.Namespace == null ? ns : a.XmlAttribute.Namespace;
1813
element.
Namespace
= rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace;
1878
element.
Namespace
= rpc ? null : xmlElement.Namespace == null ? ns : xmlElement.Namespace;
1932
element.
Namespace
= anyNs == null ? ns : anyNs;
2240
element.
Namespace
= ns;
2267
element.
Namespace
= ns;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
147
accessor.
Namespace
= typeName.Namespace;
217
accessor.
Namespace
= typeName.Namespace;
291
accessor.
Namespace
= ns;
343
accessor.
Namespace
= ns;
970
choiceAccessor.
Namespace
= ns;
1328
accessor.
Namespace
= ns;
1354
arrayAccessor.
Namespace
= ns;
1696
accessor.
Namespace
= XmlReservedNs.NsXml;
1734
accessor.
Namespace
= ns;
125 references to Namespace
dotnet-svcutil-lib (125)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (10)
129
return (
Namespace
== null ? "##any" :
Namespace
) + ":" + Name;
133
return
Namespace
== defaultNs ? Name :
Namespace
+ ":" + Name;
171
newAccessor.Namespace = this.
Namespace
;
244
if (
Namespace
== XmlReservedNs.NsXml)
878
if (a[i].Name != b[i].Name || a[i].
Namespace
!= b[i].
Namespace
|| a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable)
901
return (Attribute.Name == mapping.Attribute.Name && Attribute.
Namespace
== mapping.Attribute.
Namespace
&& Attribute.Form == mapping.Attribute.Form);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
302
element.SchemaTypeName = ExportTypeMapping(accessor.Mapping, accessor.
Namespace
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (17)
89
ExportType(mapping.Attribute.Mapping, Accessor.UnescapeName(mapping.Attribute.Name), mapping.Attribute.
Namespace
, null, false);
96
ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.
Namespace
, null, false);
101
ExportType(mapping.Text.Mapping, Accessor.UnescapeName(mapping.Text.Name), mapping.Text.
Namespace
, null, false);
109
ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.
Namespace
, element, true);
663
AddRootMetadata(metadata, mapping.Mapping, Accessor.UnescapeName(mapping.Accessor.Name), mapping.Accessor.
Namespace
, mapping.Accessor);
693
bool sameElementNs = arrayElement.Form == XmlSchemaForm.Unqualified || arrayElement.
Namespace
== ns;
697
ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.
Namespace
, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.Form, nestingLevel);
722
bool sameNs = attribute.
Namespace
== ns;
726
sameNs || defaultForm ? null : attribute.
Namespace
,
750
bool sameNs = element.
Namespace
== ns;
754
ExportAnyElement(metadata, elemName, element.
Namespace
, member.SequenceId);
760
ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.
Namespace
, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
767
ExportArrayElements(metadata, array, element.
Namespace
, member.TypeDesc.ArrayElementTypeDesc, 0);
775
ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.
Namespace
, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
785
bool sameNs = element.
Namespace
== ns;
787
ExportAnyElement(metadata, elemName, element.
Namespace
, member.SequenceId);
791
ExportElement(metadata, elemName, sameNs ? null : element.
Namespace
, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (1)
83
get { return _accessor.
Namespace
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
63
get { return Accessor.
Namespace
; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (40)
302
if (accessor.
Namespace
== ns) return accessor;
311
Accessor existing = (Accessor)accessors[accessor.Name, accessor.
Namespace
];
315
accessors.Add(accessor.Name, accessor.
Namespace
, accessor);
335
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.
Namespace
, value1, value2));
340
throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.
Namespace
));
346
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.
Namespace
, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
363
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.
Namespace
, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
365
throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.
Namespace
, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping)));
1062
ns = element.
Namespace
;
1504
arrayItemElement.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(targetType), arrayItemElement.
Namespace
, ImportContext.Element, xmlArrayItem.DataType, null, limiter);
1508
CheckForm(arrayItemElement.Form, arrayElementNs != arrayItemElement.
Namespace
);
1589
if (attribute.Form == XmlSchemaForm.None && ns != attribute.
Namespace
)
1594
CheckForm(attribute.Form, ns != attribute.
Namespace
);
1599
if (attribute.Form == XmlSchemaForm.Qualified && attribute.
Namespace
!= ns)
1635
element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.
Namespace
, ImportContext.Element, xmlElement.DataType, null, limiter);
1655
CheckForm(element.Form, ns != element.
Namespace
);
1695
element.Mapping = ImportTypeMapping(typeModel, element.
Namespace
, ImportContext.Element, String.Empty, null, limiter);
1703
CheckForm(element.Form, ns != element.
Namespace
);
1706
elements.Add(element.Name, element.
Namespace
, element);
1733
_savedArrayNamespace = arrayElement.
Namespace
;
1742
CheckForm(arrayElement.Form, ns != arrayElement.
Namespace
);
1770
if (attribute.Form == XmlSchemaForm.None && ns != attribute.
Namespace
)
1775
CheckForm(attribute.Form, ns != attribute.
Namespace
);
1779
if (attribute.Form == XmlSchemaForm.Qualified && attribute.
Namespace
!= ns)
1815
element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.
Namespace
, ImportContext.Element, xmlElement.DataType, null, limiter);
1830
CheckForm(element.Form, ns != element.
Namespace
);
1879
element.Mapping = ImportTypeMapping(typeModel, rpc ? ns : element.
Namespace
, ImportContext.Element, xmlElement.DataType, null, false, openModel, limiter);
1898
CheckForm(element.Form, ns != element.
Namespace
);
1940
element.Mapping = ImportTypeMapping(typeModel, element.
Namespace
, ImportContext.Element, String.Empty, null, false, openModel, limiter);
1947
CheckForm(element.Form, ns != element.
Namespace
);
1956
elements.Add(element.Name, element.
Namespace
, element);
2003
if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.
Namespace
== choiceNs)
2020
string id = element.
Namespace
!= null && element.
Namespace
.Length > 0 ? element.
Namespace
+ ":" + element.Name : element.Name;
2022
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.
Namespace
));
2176
Accessor existing = (Accessor)scope[accessor.Name, accessor.
Namespace
];
2181
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.
Namespace
));
2189
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.
Namespace
));
2194
scope[accessor.Name, accessor.
Namespace
] = accessor;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (23)
64
XmlSchemaType type = ExportSpecialMapping(special, xmlMembersMapping.Accessor.
Namespace
, false, null);
68
AddSchemaItem(type, xmlMembersMapping.Accessor.
Namespace
, null);
71
return (new XmlQualifiedName(xmlMembersMapping.Accessor.Name, xmlMembersMapping.Accessor.
Namespace
));
118
ExportMapping(member.Elements[0].Mapping, member.Elements[0].
Namespace
, member.Elements[0].Any);
271
AddSchemaItem(element, accessor.
Namespace
, null);
272
ExportElementMapping(element, accessor.Mapping, accessor.
Namespace
, accessor.Any);
773
if (accessor.
Namespace
== null || accessor.
Namespace
== ns)
792
AddSchemaItem(attribute, accessor.
Namespace
, ns);
797
refAttribute.RefName = new XmlQualifiedName(accessor.Name, accessor.
Namespace
);
799
AddSchemaImport(accessor.
Namespace
, ns);
815
list.ItemTypeName = ExportPrimitiveMapping(pm, accessor.
Namespace
== null ? ns : accessor.
Namespace
);
828
attribute.SchemaTypeName = ExportPrimitiveMapping(pm, accessor.
Namespace
== null ? ns : accessor.
Namespace
);
849
if (accessor.
Namespace
!= null && accessor.
Namespace
.Length > 0 && accessor.
Namespace
!= ns)
850
any.Namespace = accessor.
Namespace
;
871
AddSchemaItem(element, accessor.
Namespace
, ns);
886
ExportElementMapping(element, (TypeMapping)accessor.Mapping, accessor.
Namespace
, accessor.Any);
891
refElement.RefName = new XmlQualifiedName(accessor.Name, accessor.
Namespace
);
895
AddSchemaImport(accessor.
Namespace
, ns);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
1092
ElementAccessor scopeElement = (ElementAccessor)scope[element.Name, element.
Namespace
];
1097
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.
Namespace
));
1101
throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.
Namespace
));
1107
scope[element.Name, element.
Namespace
] = element;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
343
ilg.Ldstr(mapping.Accessor.
Namespace
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (14)
1898
WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""), mapping.IsSoap);
2097
WriteEncodedNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""));
2099
WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""));
2102
WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""));
2573
string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: String.Empty;
2697
string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: String.Empty;
2743
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: "", attribute.Default, source, attribute.Mapping, false, false, false);
3040
WriteQuotedCSharpString(element.
Namespace
);
3172
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.
Namespace
: element.Mapping.Namespace) : "");
3192
WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: "");
3509
WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: "");
3685
if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.
Namespace
== choiceNs)
3703
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.
Namespace
+ ":" + element.Name, element.Name, element.
Namespace
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
401
WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""), false);
581
WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""));
584
WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: ""));
1228
string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: String.Empty;
1398
string ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: String.Empty;
1465
WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.
Namespace
: "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false);
1825
ilg.Ldstr(element.
Namespace
);
2011
string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.
Namespace
: element.Mapping.Namespace) : "");
2041
WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: "");
2320
WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.
Namespace
: "");
2399
if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.
Namespace
== choiceNs)
2415
throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.
Namespace
+ ":" + element.Name, element.Name, element.
Namespace
));