18 references to Optional
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (6)
337attributeReference.Use = XmlSchemaUse.Optional; 396attributeReference.Use = XmlSchemaUse.Optional; 444xsa.Use = XmlSchemaUse.Optional; 1446attr.Use = XmlSchemaUse.Optional; 1453attr.Use = XmlSchemaUse.Optional; 1459attr.Use = XmlSchemaUse.Optional;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
1253if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (2)
1970if (attribute.Use == XmlSchemaUse.Optional) 2169case XmlSchemaUse.Optional:
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
900if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
2375if (attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) 2616case XmlSchemaUse.Optional:
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (2)
327XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 735case XmlSchemaUse.@Optional: s = @"optional"; break;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
734attribute.Use = XmlSchemaUse.Optional;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1586if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (2)
4141case Microsoft.Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 10745case @"optional": return Microsoft.Xml.Schema.XmlSchemaUse.@Optional;