19 references to Optional
System.Data (1)
fx\src\data\System\Data\XMLSchema.cs (1)
2028if ((attr.Use == XmlSchemaUse.Optional) && (strDefault == null ))
System.ServiceModel (2)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
80dAttr.Use = XmlSchemaUse.Optional; 108nqAttr.Use = XmlSchemaUse.Optional;
System.Web.Services (2)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (2)
3278case global::System.Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 8677case @"optional": return global::System.Xml.Schema.XmlSchemaUse.@Optional;
System.Xml (14)
System\Xml\Schema\Inference\Infer.cs (6)
335attributeReference.Use = XmlSchemaUse.Optional; 394attributeReference.Use = XmlSchemaUse.Optional; 442xsa.Use = XmlSchemaUse.Optional; 1423attr.Use = XmlSchemaUse.Optional; 1428attr.Use = XmlSchemaUse.Optional; 1433attr.Use = XmlSchemaUse.Optional;
System\Xml\Schema\Preprocessor.cs (1)
1034if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
1717case XmlSchemaUse.Optional:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
724if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaSetCompiler.cs (1)
2076case XmlSchemaUse.Optional:
System\Xml\Serialization\SchemaObjectWriter.cs (2)
271XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 605case XmlSchemaUse.@Optional:s = @"optional"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
631attribute.Use = XmlSchemaUse.Optional;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1384if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) {