70 references to None
dotnet-svcutil-lib (70)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (8)
1057if (_elementFormDefault == XmlSchemaForm.None) 1062if (_attributeFormDefault == XmlSchemaForm.None) 1195if (attribute.Form != XmlSchemaForm.None) 1209attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && _attributeFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null)); 1224attribute.Form != XmlSchemaForm.None /*|| 1328if (element.Form != XmlSchemaForm.None) 1353element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && _elementFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null)); 1372element.Form != XmlSchemaForm.None ||
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (8)
472if (_elementFormDefault == XmlSchemaForm.None) 477if (_attributeFormDefault == XmlSchemaForm.None) 844if (attribute.Form != XmlSchemaForm.None) 858attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && _attributeFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null)); 873attribute.Form != XmlSchemaForm.None /*|| 975if (element.Form != XmlSchemaForm.None) 1000element.SetQualifiedName(new XmlQualifiedName(element.Name, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && _elementFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null)); 1019element.Form != XmlSchemaForm.None ||
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (4)
35private XmlSchemaForm _attributeFormDefault = XmlSchemaForm.None; 36private XmlSchemaForm _elementFormDefault = XmlSchemaForm.None; 282[XmlAttribute("attributeFormDefault"), DefaultValue(XmlSchemaForm.None)] 315[XmlAttribute("elementFormDefault"), DefaultValue(XmlSchemaForm.None)]
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAttribute.cs (2)
25private XmlSchemaForm _form = XmlSchemaForm.None; 65[XmlAttribute("form"), DefaultValue(XmlSchemaForm.None)]
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
587if (element.Form == XmlSchemaForm.None && parentSchema != null)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (2)
30private XmlSchemaForm _form = XmlSchemaForm.None; 113[XmlAttribute("form"), DefaultValue(XmlSchemaForm.None)]
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
31private XmlSchemaForm _form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
123schema.ElementFormDefault = elementFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : elementFormDefault;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (4)
184accessor.Form = XmlSchemaForm.None; 440arrayAccessor.Form = XmlSchemaForm.None; 458itemAccessor.Form = XmlSchemaForm.None; 519itemAccessor.Form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayAttribute.cs (1)
20private XmlSchemaForm _form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlArrayItemAttribute.cs (1)
23private XmlSchemaForm _form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributeAttribute.cs (1)
21private XmlSchemaForm _form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (7)
697ExportArrayItem(metadata, sameName ? null : elementName, sameElementNs ? null : arrayElement.Namespace, sameElementType ? null : elementMapping.TypeDesc, elementMapping.TypeDesc, arrayElement.IsNullable, defaultForm ? XmlSchemaForm.None : arrayElement.Form, nestingLevel); 729defaultForm ? XmlSchemaForm.None : attribute.Form); 760ExportArray(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 765ExportArray(metadata, null, null, false, XmlSchemaForm.None, member.SequenceId); 775ExportElement(metadata, sameName ? null : elemName, sameNs ? null : element.Namespace, sameType ? null : mapping.TypeDesc, mapping.TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 791ExportElement(metadata, elemName, sameNs ? null : element.Namespace, ((TypeMapping)element.Mapping).TypeDesc, ((TypeMapping)element.Mapping).TypeDesc, element.IsNullable, defaultForm ? XmlSchemaForm.None : element.Form, member.SequenceId); 910if (form != XmlSchemaForm.None)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlElementAttribute.cs (1)
23private XmlSchemaForm _form = XmlSchemaForm.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (7)
1507arrayItemElement.Form = xmlArrayItem.Form == XmlSchemaForm.None ? XmlSchemaForm.Qualified : xmlArrayItem.Form; 1589if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1650element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1737arrayElement.Form = rpc ? XmlSchemaForm.Unqualified : a.XmlArray.Form == XmlSchemaForm.None ? elementFormDefault : a.XmlArray.Form; 1770if (attribute.Form == XmlSchemaForm.None && ns != attribute.Namespace) 1825element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form; 1893element.Form = rpc ? XmlSchemaForm.Unqualified : xmlElement.Form == XmlSchemaForm.None ? elementFormDefault : xmlElement.Form;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (8)
299schema.ElementFormDefault = elementFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : elementFormDefault; 300schema.AttributeFormDefault = attributeFormDefault == XmlSchemaForm.Unqualified ? XmlSchemaForm.None : attributeFormDefault; 320e.Form = XmlSchemaForm.None; 327a.Form = XmlSchemaForm.None; 778attribute.Form = accessor.Form == attributeFormDefault ? XmlSchemaForm.None : accessor.Form; 781attribute.Form = accessor.Form == schema.AttributeFormDefault ? XmlSchemaForm.None : accessor.Form; 880element.Form = accessor.Form == elementFormDefault ? XmlSchemaForm.None : accessor.Form; 883element.Form = accessor.Form == schema.ElementFormDefault ? XmlSchemaForm.None : accessor.Form;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
227accessor.Form = schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault; 997if (item.Form != XmlSchemaForm.None && item.Form != XmlSchemaExporter.elementFormDefault) 2072if (element.Form == XmlSchemaForm.None) 2085return schema.ElementFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.ElementFormDefault; 2145if (attribute.Form == XmlSchemaForm.None) 2157return schema.AttributeFormDefault == XmlSchemaForm.None ? XmlSchemaForm.Unqualified : schema.AttributeFormDefault;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (2)
976XmlSchemaForm? elementForm = (element.Form == XmlSchemaForm.None) ? SchemaHelper.GetSchemaWithType(SchemaObjects, _schemaSet, typeName)?.ElementFormDefault : element.Form; 1074XmlSchemaForm? elementForm = (element.Form == XmlSchemaForm.None) ? SchemaHelper.GetSchemaWithType(SchemaObjects, _schemaSet, typeName)?.ElementFormDefault : element.Form;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1165XmlSchemaForm elementForm = (element.Form != XmlSchemaForm.None) ? element.Form : elementFormDefault;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (4)
2315if (((Microsoft.Xml.Schema.XmlSchemaForm)o.@AttributeFormDefault) != Microsoft.Xml.Schema.XmlSchemaForm.@None) 2327if (((Microsoft.Xml.Schema.XmlSchemaForm)o.@ElementFormDefault) != Microsoft.Xml.Schema.XmlSchemaForm.@None) 2857if (((Microsoft.Xml.Schema.XmlSchemaForm)o.@Form) != Microsoft.Xml.Schema.XmlSchemaForm.@None) 4120if (((Microsoft.Xml.Schema.XmlSchemaForm)o.@Form) != Microsoft.Xml.Schema.XmlSchemaForm.@None)