16 writes to Use
dotnet-svcutil-lib (16)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (9)
333
attributeReference.
Use
= XmlSchemaUse.Required;
337
attributeReference.
Use
= XmlSchemaUse.Optional;
392
attributeReference.
Use
= XmlSchemaUse.Required;
396
attributeReference.
Use
= XmlSchemaUse.Optional;
442
xsa.
Use
= XmlSchemaUse.Required;
444
xsa.
Use
= XmlSchemaUse.Optional;
1446
attr.
Use
= XmlSchemaUse.Optional;
1453
attr.
Use
= XmlSchemaUse.Optional;
1459
attr.
Use
= XmlSchemaUse.Optional;
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
1283
builder._attribute.
Use
= (XmlSchemaUse)builder.ParseEnum(value, "use", s_useStringValues);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (5)
734
attribute.
Use
= XmlSchemaUse.Optional;
767
attribute.
Use
= XmlSchemaUse.None;
770
attribute.
Use
= XmlSchemaUse.Required;
790
attribute.
Use
= XmlSchemaUse.None;
796
refAttribute.
Use
= XmlSchemaUse.None;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (1)
9191
o.
@Use
= Read35_XmlSchemaUse(Reader.Value);
61 references to Use
dotnet-svcutil-lib (61)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
1191
if (attribute.
Use
!= XmlSchemaUse.None)
1253
if (attribute.DefaultValue != null && attribute.
Use
!= XmlSchemaUse.Optional && attribute.
Use
!= XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (17)
745
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
770
if (attribute.
Use
== XmlSchemaUse.Prohibited)
1734
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
1793
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
1797
if (attribute.
Use
!= XmlSchemaUse.Prohibited ||
1798
(attribute.
Use
== XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
1823
if (attributeValue.
Use
!= XmlSchemaUse.Prohibited ||
1824
(attributeValue.
Use
== XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
1860
Debug.Assert(attribute.
Use
!= XmlSchemaUse.Prohibited);
1861
if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.
Use
== XmlSchemaUse.Prohibited)
1894
if (attributeBase.
Use
== XmlSchemaUse.Prohibited && attribute.
Use
!= XmlSchemaUse.Prohibited)
1908
else if (attribute.
Use
== XmlSchemaUse.Prohibited)
1959
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
1970
if (attribute.
Use
== XmlSchemaUse.Optional)
1990
if (attribute.
Use
== XmlSchemaUse.Prohibited)
2166
switch (xa.
Use
)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
840
if (attribute.
Use
!= XmlSchemaUse.None)
900
if (attribute.DefaultValue != null && attribute.
Use
!= XmlSchemaUse.Optional && attribute.
Use
!= XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (26)
842
if (attribute.
Use
== XmlSchemaUse.Prohibited)
2072
if (attr.
Use
== XmlSchemaUse.Prohibited)
2136
if (attr.
Use
!= XmlSchemaUse.Prohibited)
2140
if (attr.
Use
!= XmlSchemaUse.Prohibited ||
2141
(attr.
Use
== XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
2166
if (attribute.
Use
!= XmlSchemaUse.Prohibited ||
2167
(attribute.
Use
== XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
2207
Debug.Assert(attribute.
Use
!= XmlSchemaUse.Prohibited);
2208
if (attributeBase.
Use
!= XmlSchemaUse.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType)
2237
if (attributeBase.
Use
== XmlSchemaUse.Prohibited && attribute.
Use
!= XmlSchemaUse.Prohibited)
2251
else if (attributeBase.
Use
== XmlSchemaUse.Required && (attribute.
Use
!= XmlSchemaUse.Required))
2255
else if (attribute.
Use
== XmlSchemaUse.Prohibited)
2315
if (attributeBase.
Use
== XmlSchemaUse.Prohibited && attribute.
Use
!= XmlSchemaUse.Prohibited)
2319
else if (attributeBase.
Use
== XmlSchemaUse.Required && attribute.
Use
!= XmlSchemaUse.Required)
2323
else if (attribute.
Use
== XmlSchemaUse.Prohibited)
2336
else if (attributeBase.
Use
== XmlSchemaUse.Required)
2364
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
2375
if (attribute.
Use
== XmlSchemaUse.Optional || attribute.
Use
== XmlSchemaUse.None)
2395
if (attribute.
Use
== XmlSchemaUse.Prohibited)
2589
if (xa.
Use
== XmlSchemaUse.Required)
2613
switch (xa.
Use
)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
390
if (attribute.
Use
!= XmlSchemaUse.Prohibited)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (2)
327
XmlSchemaUse use = o.
Use
== XmlSchemaUse.None ? XmlSchemaUse.Optional : o.
Use
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
361
if (attr.
Use
!= XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
1586
if ((attribute.
Use
== XmlSchemaUse.Optional || attribute.
Use
== XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
1704
if (attribute.
Use
== XmlSchemaUse.Prohibited) return null;
1739
accessor.IsOptional = attribute.
Use
!= XmlSchemaUse.Required;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (2)
1388
if (attribute.
Use
== XmlSchemaUse.Prohibited)
1394
if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.
Use
== XmlSchemaUse.Required)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (2)
4127
if (((Microsoft.Xml.Schema.XmlSchemaUse)o.
@Use
) != Microsoft.Xml.Schema.XmlSchemaUse.@None)
4129
WriteAttribute(@"use", @"", Write35_XmlSchemaUse(((Microsoft.Xml.Schema.XmlSchemaUse)o.
@Use
)));