26 writes to Form
System.Private.Xml (26)
System\Xml\Serialization\Mappings.cs (2)
173newAccessor.Form = this.Form; 261Form = XmlSchemaForm.Qualified;
System\Xml\Serialization\SoapReflectionImporter.cs (4)
90element.Form = XmlSchemaForm.Qualified; 130element.Form = XmlSchemaForm.Qualified; 705attribute.Form = XmlSchemaForm.Qualified; // attributes are always qualified since they're only used for encoded soap headers 720element.Form = form;
System\Xml\Serialization\XmlReflectionImporter.cs (13)
227element.Form = XmlSchemaForm.Qualified; // elements within soap:body are always qualified 292element.Form = XmlSchemaForm.Qualified; 1519arrayItemElement.Form = xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form; 1602attribute.Form = a.XmlAttribute.Form; 1605attribute.Form = XmlSchemaForm.Qualified; 1663element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1711element.Form = elementFormDefault; 1749arrayElement.Form = rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form; 1781attribute.Form = a.XmlAttribute.Form; 1784attribute.Form = XmlSchemaForm.Qualified; 1836element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1904element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1954element.Form = elementFormDefault;
System\Xml\Serialization\XmlSchemaImporter.cs (7)
107accessor.Form = XmlSchemaForm.Qualified; 178accessor.Form = schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault; 243accessor.Form = XmlSchemaForm.Qualified; 315accessor.Form = XmlSchemaForm.Qualified; 319accessor.Form = ElementForm(ns, element); 1254arrayAccessor.Form = ElementForm(ns, element); 1631accessor.Form = AttributeForm(ns, attribute);
79 references to Form
System.Private.Xml (79)
System\Xml\Serialization\Mappings.cs (5)
173newAccessor.Form = this.Form; 830if (a[i].Name != b[i].Name || a[i].Namespace != b[i].Namespace || a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable) 853return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.Form == mapping.Attribute.Form);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
103string elementNs = element.Form == XmlSchemaForm.Qualified ? element.Namespace! : string.Empty; 338string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 763string? ns = ele.Form == XmlSchemaForm.Qualified ? ele.Namespace : string.Empty; 813string? ns = e!.Form == XmlSchemaForm.Qualified ? e.Namespace : string.Empty; 830string? ns = element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty; 1861memberFound = XmlNodeEqual(Reader, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (7)
84string? ns = (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 319string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : string.Empty); 339WriteNullTagLiteral(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty); 774Writer.WriteStartAttribute(null, attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty); 850string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 888string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1199WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : string.Empty), mapping.IsSoap);
System\Xml\Serialization\XmlReflectionImporter.cs (14)
1520CheckForm(arrayItemElement.Form, arrayElementNs != arrayItemElement.Namespace); 1603if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1608CheckForm(attribute.Form, ns != attribute.Namespace); 1613if (attribute.Form == XmlSchemaForm.Qualified && attribute.Namespace != ns) 1668CheckForm(element.Form, ns != element.Namespace); 1716CheckForm(element.Form, ns != element.Namespace); 1754CheckForm(arrayElement.Form, ns != arrayElement.Namespace); 1782if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1787CheckForm(attribute.Form, ns != attribute.Namespace); 1791if (attribute.Form == XmlSchemaForm.Qualified && attribute.Namespace != ns) 1841CheckForm(element.Form, ns != element.Namespace); 1909CheckForm(element.Form, ns != element.Namespace); 1958CheckForm(element.Form, ns != element.Namespace); 2014if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)
System\Xml\Serialization\XmlSchemaExporter.cs (11)
243element.Form = accessor.Form; 738attribute.Form = accessor.Form == attributeFormDefault ? XmlSchemaForm.None : accessor.Form; 741attribute.Form = accessor.Form == schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.Form; 751attribute.Form = accessor.Form; 829element.Form = accessor.Form; 839element.Form = accessor.Form == elementFormDefault ? XmlSchemaForm.None : accessor.Form; 842element.Form = accessor.Form == schema.ElementFormDefault ? XmlSchemaForm.None : accessor.Form;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
892if (item.Form != XmlSchemaForm.None && item.Form != XmlSchemaExporter.elementFormDefault)
System\Xml\Serialization\XmlSerializationReader.cs (7)
2364string? expectedElement = e.Form == XmlSchemaForm.Qualified ? e.Namespace : ""; 2495WriteIsStartTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2678WriteXmlNodeEqual("Reader", element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 3715WriteXmlNodeEqual("Reader", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : ""); 3780qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : $"{(attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "")}:{attribute.Name}"; 3992string? ns = e.Form == XmlSchemaForm.Qualified ? e.Namespace : ""; 4211string? ns = e.Form == XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationReaderILGen.cs (6)
323string? expectedElement = e.Form == XmlSchemaForm.Qualified ? e.Namespace : ""; 422WriteIsStartTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 1855WriteXmlNodeEqual("Reader", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : ""); 2006qnames += attribute.IsSpecialXmlNamespace ? XmlReservedNs.NsXml : $"{(attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "")}:{attribute.Name}"; 2215string? ns = e.Form == XmlSchemaForm.Qualified ? e.Namespace : ""; 2474string? ns = e.Form == XmlSchemaForm.Qualified ? e.Namespace : "";
System\Xml\Serialization\XmlSerializationWriter.cs (11)
2630WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap); 2830WriteEncodedNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2832WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2835WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 3309string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 3433string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 3479WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false); 3913string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 3933WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 4251WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 4471if ((element.Form == XmlSchemaForm.Unqualified && choiceNs.IsEmpty) || choiceNs.SequenceEqual(element.Namespace))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
391WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), false); 567WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 570WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 1173string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1319string? ns = attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : string.Empty; 1381WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false); 1899string? ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping!.Namespace) : ""); 1926WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2188WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2264if ((element.Form == XmlSchemaForm.Unqualified && string.IsNullOrEmpty(choiceNs)) || element.Namespace == choiceNs)