33 writes to Form
dotnet-svcutil-lib (33)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
167
newAccessor.
Form
= this.Form;
255
Form
= XmlSchemaForm.Qualified;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
118
element.
Form
= XmlSchemaForm.Qualified;
165
element.
Form
= XmlSchemaForm.Qualified;
731
attribute.
Form
= XmlSchemaForm.Qualified; // attributes are always qualified since they're only used for encoded soap headers
746
element.
Form
= form;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
72
accessor.
Form
= XmlSchemaForm.Qualified;
98
accessor.
Form
= XmlSchemaForm.Qualified;
160
accessor.
Form
= XmlSchemaForm.Qualified;
184
accessor.
Form
= XmlSchemaForm.None;
440
arrayAccessor.
Form
= XmlSchemaForm.None;
458
itemAccessor.
Form
= XmlSchemaForm.None;
519
itemAccessor.
Form
= XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (13)
219
element.
Form
= XmlSchemaForm.Qualified; // elements within soap:body are always qualified
286
element.
Form
= XmlSchemaForm.Qualified;
1507
arrayItemElement.
Form
= xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form;
1588
attribute.
Form
= a.XmlAttribute.Form;
1591
attribute.
Form
= XmlSchemaForm.Qualified;
1650
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1698
element.
Form
= elementFormDefault;
1737
arrayElement.
Form
= rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form;
1769
attribute.
Form
= a.XmlAttribute.Form;
1772
attribute.
Form
= XmlSchemaForm.Qualified;
1825
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1893
element.
Form
= rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
1943
element.
Form
= elementFormDefault;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (7)
153
accessor.
Form
= XmlSchemaForm.Qualified;
227
accessor.
Form
= schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault;
294
accessor.
Form
= XmlSchemaForm.Qualified;
362
accessor.
Form
= XmlSchemaForm.Qualified;
366
accessor.
Form
= ElementForm(ns, element);
1358
arrayAccessor.
Form
= ElementForm(ns, element);
1735
accessor.
Form
= AttributeForm(ns, attribute);
63 references to Form
dotnet-svcutil-lib (63)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (5)
167
newAccessor.Form = this.
Form
;
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\XmlCodeExporter.cs (10)
693
bool sameElementNs = arrayElement.
Form
== XmlSchemaForm.Unqualified || arrayElement.Namespace == ns;
695
bool defaultForm = arrayElement.
Form
!= XmlSchemaForm.Unqualified;
697
ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.
Form
, nestingLevel);
723
bool defaultForm = attribute.
Form
!= XmlSchemaForm.Qualified;
729
defaultForm ? XmlSchemaForm.None : attribute.
Form
);
751
bool defaultForm = element.
Form
!= XmlSchemaForm.Unqualified;
760
ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.
Form
, member.SequenceId);
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);
790
bool defaultForm = element.
Form
!= XmlSchemaForm.Unqualified;
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\XmlReflectionImporter.cs (14)
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)
1655
CheckForm(element.
Form
, ns != element.Namespace);
1703
CheckForm(element.
Form
, ns != element.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)
1830
CheckForm(element.
Form
, ns != element.Namespace);
1898
CheckForm(element.
Form
, ns != element.Namespace);
1947
CheckForm(element.
Form
, ns != element.Namespace);
2003
if ((element.
Form
== XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (11)
270
element.Form = accessor.
Form
;
778
attribute.Form = accessor.
Form
== attributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
781
attribute.Form = accessor.
Form
== schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.
Form
;
791
attribute.Form = accessor.
Form
;
870
element.Form = accessor.
Form
;
880
element.Form = accessor.
Form
== elementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
883
element.Form = accessor.
Form
== schema.ElementFormDefault ? XmlSchemaForm.None : accessor.
Form
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
997
if (item.
Form
!= XmlSchemaForm.None && item.
Form
!= XmlSchemaExporter.elementFormDefault)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (11)
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);
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)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
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);
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)