71 references to None
System.Data (1)
fx\src\data\System\Data\XMLSchema.cs (1)
2170else if (elem.Form == XmlSchemaForm.None) {
System.Runtime.Serialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
982XmlSchemaForm elementForm = (element.Form == XmlSchemaForm.None) ? SchemaHelper.GetSchemaWithType(SchemaObjects, schemaSet, typeName).ElementFormDefault : element.Form; 1080XmlSchemaForm elementForm = (element.Form == XmlSchemaForm.None) ? SchemaHelper.GetSchemaWithType(SchemaObjects, schemaSet, typeName).ElementFormDefault : element.Form;
System.ServiceModel (1)
System\ServiceModel\Description\MessageContractImporter.cs (1)
1177XmlSchemaForm elementForm = (element.Form != XmlSchemaForm.None) ? element.Form : elementFormDefault;
System.Web.Services (4)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (4)
1813if (((global::System.Xml.Schema.XmlSchemaForm)o.@AttributeFormDefault) != global::System.Xml.Schema.XmlSchemaForm.@None) { 1822if (((global::System.Xml.Schema.XmlSchemaForm)o.@ElementFormDefault) != global::System.Xml.Schema.XmlSchemaForm.@None) { 2243if (((global::System.Xml.Schema.XmlSchemaForm)o.@Form) != global::System.Xml.Schema.XmlSchemaForm.@None) { 3261if (((global::System.Xml.Schema.XmlSchemaForm)o.@Form) != global::System.Xml.Schema.XmlSchemaForm.@None) {
System.Xml (63)
System\Xml\Schema\Preprocessor.cs (8)
880if (this.elementFormDefault == XmlSchemaForm.None) { 884if (this.attributeFormDefault == XmlSchemaForm.None) { 987if (attribute.Form != XmlSchemaForm.None) { 998attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && this.attributeFormDefault == XmlSchemaForm.Qualified)) ? this.targetNamespace : null)); 1010attribute.Form != XmlSchemaForm.None /*|| 1092if (element.Form != XmlSchemaForm.None) { 1111element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && this.elementFormDefault == XmlSchemaForm.Qualified))? this.targetNamespace : null)); 1127element.Form != XmlSchemaForm.None ||
System\Xml\Schema\SchemaCollectionpreProcessor.cs (8)
389if (this.elementFormDefault == XmlSchemaForm.None) { 393if (this.attributeFormDefault == XmlSchemaForm.None) { 679if (attribute.Form != XmlSchemaForm.None) { 690attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && this.attributeFormDefault == XmlSchemaForm.Qualified)) ? this.targetNamespace : null)); 702attribute.Form != XmlSchemaForm.None /*|| 782if (element.Form != XmlSchemaForm.None) { 801element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && this.elementFormDefault == XmlSchemaForm.Qualified))? this.targetNamespace : null)); 817element.Form != XmlSchemaForm.None ||
System\Xml\Schema\XmlSchema.cs (4)
42XmlSchemaForm attributeFormDefault = XmlSchemaForm.None; 43XmlSchemaForm elementFormDefault = XmlSchemaForm.None; 263[XmlAttribute("attributeFormDefault"), DefaultValue(XmlSchemaForm.None)] 293[XmlAttribute("elementFormDefault"), DefaultValue(XmlSchemaForm.None)]
System\Xml\Schema\XmlSchemaAttribute.cs (2)
23XmlSchemaForm form = XmlSchemaForm.None; 61[XmlAttribute("form"), DefaultValue(XmlSchemaForm.None)]
System\Xml\Schema\XmlSchemaComplexType.cs (1)
507if (element.Form == XmlSchemaForm.None && parentSchema != null) {
System\Xml\Schema\XmlSchemaElement.cs (2)
28XmlSchemaForm form = XmlSchemaForm.None; 105[XmlAttribute("form"), DefaultValue(XmlSchemaForm.None)]
System\Xml\Serialization\Mappings.cs (1)
33XmlSchemaForm form = XmlSchemaForm.None;
System\Xml\Serialization\SoapSchemaExporter.cs (1)
109schema.ElementFormDefault = elementFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : elementFormDefault;
System\Xml\Serialization\SoapSchemaImporter.cs (4)
176accessor.Form = XmlSchemaForm.None; 393arrayAccessor.Form = XmlSchemaForm.None; 409itemAccessor.Form = XmlSchemaForm.None; 462itemAccessor.Form = XmlSchemaForm.None;
System\Xml\Serialization\XmlArrayAttribute.cs (1)
22XmlSchemaForm form = XmlSchemaForm.None;
System\Xml\Serialization\XmlArrayItemAttribute.cs (1)
25XmlSchemaForm form = XmlSchemaForm.None;
System\Xml\Serialization\XmlAttributeAttribute.cs (1)
23XmlSchemaForm form = XmlSchemaForm.None;
System\Xml\Serialization\XmlCodeExporter.cs (7)
607ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.Form, nestingLevel); 635defaultForm ? XmlSchemaForm.None : attribute.Form); 662ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 666ExportArray(metadata, null, null, false, XmlSchemaForm.None, member.SequenceId); 675ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 688ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 789if (form != XmlSchemaForm.None) {
System\Xml\Serialization\XmlElementAttribute.cs (1)
24XmlSchemaForm form = XmlSchemaForm.None;
System\Xml\Serialization\XmlReflectionImporter.cs (7)
1310arrayItemElement.Form = xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form; 1385if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) { 1440element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1518arrayElement.Form = rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form; 1547if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) { 1594element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1651element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
System\Xml\Serialization\XmlSchemaExporter.cs (8)
265schema.ElementFormDefault = elementFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : elementFormDefault; 266schema.AttributeFormDefault = attributeFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : attributeFormDefault; 283e.Form = XmlSchemaForm.None; 289a.Form = XmlSchemaForm.None; 666attribute.Form = accessor.Form == attributeFormDefault ? XmlSchemaForm.None : accessor.Form; 668attribute.Form = accessor.Form == schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.Form; 751element.Form = accessor.Form == elementFormDefault ? XmlSchemaForm.None : accessor.Form; 753element.Form = accessor.Form == schema.ElementFormDefault ? XmlSchemaForm.None : accessor.Form;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
208accessor.Form = schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault; 870if (item.Form != XmlSchemaForm.None && item.Form != XmlSchemaExporter.elementFormDefault) 1800if (element.Form == XmlSchemaForm.None) { 1809return schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault; 1858if (attribute.Form == XmlSchemaForm.None) { 1866return schema.AttributeFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.AttributeFormDefault;