17 references to Optional
System.Data.Common (1)
System\Data\XMLSchema.cs (1)
2333if ((attr.Use == XmlSchemaUse.Optional) && (strDefault == null))
System.Private.Xml (14)
System\Xml\Schema\Inference\Infer.cs (6)
315attributeReference.Use = XmlSchemaUse.Optional; 375attributeReference.Use = XmlSchemaUse.Optional; 423xsa.Use = XmlSchemaUse.Optional; 1427attr.Use = XmlSchemaUse.Optional; 1434attr.Use = XmlSchemaUse.Optional; 1440attr.Use = XmlSchemaUse.Optional;
System\Xml\Schema\Preprocessor.cs (1)
1220if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
2088case XmlSchemaUse.Optional:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
892if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaSetCompiler.cs (1)
2560case XmlSchemaUse.Optional:
System\Xml\Serialization\SchemaObjectWriter.cs (2)
326XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 734case XmlSchemaUse.@Optional: s = @"optional"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
695attribute.Use = XmlSchemaUse.Optional;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1446if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc!.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
System.Web.Services.Description (2)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (2)
3859case Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 10667case @"optional": return Xml.Schema.XmlSchemaUse.@Optional;