17 references to Optional
System.Data.Common (1)
System\Data\XMLSchema.cs (1)
2344
if ((attr.Use == XmlSchemaUse.
Optional
) && (strDefault == null))
System.Private.Xml (14)
System\Xml\Schema\Inference\Infer.cs (6)
315
attributeReference.Use = XmlSchemaUse.
Optional
;
375
attributeReference.Use = XmlSchemaUse.
Optional
;
423
xsa.Use = XmlSchemaUse.
Optional
;
1427
attr.Use = XmlSchemaUse.
Optional
;
1434
attr.Use = XmlSchemaUse.
Optional
;
1440
attr.Use = XmlSchemaUse.
Optional
;
System\Xml\Schema\Preprocessor.cs (1)
1220
if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.
Optional
&& attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
2088
case XmlSchemaUse.
Optional
:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
892
if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.
Optional
&& attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaSetCompiler.cs (1)
2560
case XmlSchemaUse.
Optional
:
System\Xml\Serialization\SchemaObjectWriter.cs (2)
326
XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.
Optional
: o.Use;
734
case XmlSchemaUse.
@Optional
: s = @"optional"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
695
attribute.Use = XmlSchemaUse.
Optional
;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1481
if ((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)
3859
case Xml.Schema.XmlSchemaUse.
@Optional
: s = @"optional"; break;
10667
case @"optional": return Xml.Schema.XmlSchemaUse.
@Optional
;