100 references to XmlSchemaUse
netstandard (1)
netstandard.cs (1)
2370
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaUse
))]
System.Data.Common (4)
System\Data\XMLSchema.cs (4)
2310
column.AllowDBNull = !(attrib.Use ==
XmlSchemaUse
.Required);
2324
if (attrib.Use ==
XmlSchemaUse
.Prohibited)
2343
string? strDefault = (attrib.Use ==
XmlSchemaUse
.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue;
2344
if ((attr.Use ==
XmlSchemaUse
.Optional) && (strDefault == null))
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
1379
if (attribute.Use ==
XmlSchemaUse
.Prohibited)
1385
if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use ==
XmlSchemaUse
.Required)
System.Private.Xml (79)
System\Xml\Schema\Inference\Infer.cs (9)
311
attributeReference.Use =
XmlSchemaUse
.Required;
315
attributeReference.Use =
XmlSchemaUse
.Optional;
371
attributeReference.Use =
XmlSchemaUse
.Required;
375
attributeReference.Use =
XmlSchemaUse
.Optional;
421
xsa.Use =
XmlSchemaUse
.Required;
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 (3)
1158
if (attribute.Use !=
XmlSchemaUse
.None)
1220
if (attribute.DefaultValue != null && attribute.Use !=
XmlSchemaUse
.Optional && attribute.Use !=
XmlSchemaUse
.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (17)
754
if (attribute!.Use !=
XmlSchemaUse
.Prohibited)
779
if (attribute!.Use ==
XmlSchemaUse
.Prohibited)
1732
if (attribute.Use !=
XmlSchemaUse
.Prohibited)
1792
if (attribute.Use !=
XmlSchemaUse
.Prohibited)
1796
if (attribute.Use !=
XmlSchemaUse
.Prohibited ||
1797
(attribute.Use ==
XmlSchemaUse
.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
1822
if (attributeValue!.Use !=
XmlSchemaUse
.Prohibited ||
1823
(attributeValue.Use ==
XmlSchemaUse
.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
1859
Debug.Assert(attribute.Use !=
XmlSchemaUse
.Prohibited);
1860
if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.Use ==
XmlSchemaUse
.Prohibited)
1893
if (attributeBase.Use ==
XmlSchemaUse
.Prohibited && attribute.Use !=
XmlSchemaUse
.Prohibited)
1897
else if (attribute.Use ==
XmlSchemaUse
.Prohibited)
2087
case
XmlSchemaUse
.None:
2088
case
XmlSchemaUse
.Optional:
2091
case
XmlSchemaUse
.Required:
2094
case
XmlSchemaUse
.Prohibited:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
832
if (attribute.Use !=
XmlSchemaUse
.None)
892
if (attribute.DefaultValue != null && attribute.Use !=
XmlSchemaUse
.Optional && attribute.Use !=
XmlSchemaUse
.None)
System\Xml\Schema\SchemaSetCompiler.cs (25)
855
if (attribute!.Use ==
XmlSchemaUse
.Prohibited)
2086
if (attr.Use ==
XmlSchemaUse
.Prohibited)
2152
if (attr.Use !=
XmlSchemaUse
.Prohibited)
2156
if (attr.Use !=
XmlSchemaUse
.Prohibited ||
2157
(attr.Use ==
XmlSchemaUse
.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
2182
if (attribute!.Use !=
XmlSchemaUse
.Prohibited ||
2183
(attribute.Use ==
XmlSchemaUse
.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
2224
Debug.Assert(attribute.Use !=
XmlSchemaUse
.Prohibited);
2225
if (attributeBase.Use !=
XmlSchemaUse
.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType)
2254
if (attributeBase.Use ==
XmlSchemaUse
.Prohibited && attribute.Use !=
XmlSchemaUse
.Prohibited)
2258
else if (attributeBase.Use ==
XmlSchemaUse
.Required && (attribute.Use !=
XmlSchemaUse
.Required))
2262
else if (attribute.Use ==
XmlSchemaUse
.Prohibited)
2314
if (attributeBase.Use ==
XmlSchemaUse
.Prohibited && attribute.Use !=
XmlSchemaUse
.Prohibited)
2318
else if (attributeBase.Use ==
XmlSchemaUse
.Required && attribute.Use !=
XmlSchemaUse
.Required)
2322
else if (attribute.Use ==
XmlSchemaUse
.Prohibited)
2335
else if (attributeBase.Use ==
XmlSchemaUse
.Required)
2531
if (xa.Use ==
XmlSchemaUse
.Required)
2559
case
XmlSchemaUse
.None:
2560
case
XmlSchemaUse
.Optional:
2563
case
XmlSchemaUse
.Required:
2566
case
XmlSchemaUse
.Prohibited:
System\Xml\Schema\XmlSchemaAttribute.cs (4)
18
private
XmlSchemaUse
_use =
XmlSchemaUse
.None;
80
[XmlAttribute("use"), DefaultValue(
XmlSchemaUse
.None)]
81
public
XmlSchemaUse
Use
System\Xml\Schema\XmlSchemaComplexType.cs (1)
300
if (attribute!.Use !=
XmlSchemaUse
.Prohibited)
System\Xml\Schema\XsdBuilder.cs (1)
1276
builder._attribute!.Use = (
XmlSchemaUse
)builder.ParseEnum(value, "use", s_useStringValues);
System\Xml\Serialization\SchemaObjectWriter.cs (7)
326
XmlSchemaUse
use = o.Use ==
XmlSchemaUse
.None ?
XmlSchemaUse
.Optional : o.Use;
729
private static string? Write30_XmlSchemaUse(
XmlSchemaUse
v)
734
case
XmlSchemaUse
.@Optional: s = @"optional"; break;
735
case
XmlSchemaUse
.@Prohibited: s = @"prohibited"; break;
736
case
XmlSchemaUse
.@Required: s = @"required"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (5)
695
attribute.Use =
XmlSchemaUse
.Optional;
727
attribute.Use =
XmlSchemaUse
.None;
730
attribute.Use =
XmlSchemaUse
.Required;
750
attribute.Use =
XmlSchemaUse
.None;
756
refAttribute.Use =
XmlSchemaUse
.None;
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1481
if ((attribute.Use ==
XmlSchemaUse
.Optional || attribute.Use ==
XmlSchemaUse
.None) && member.TypeDesc!.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty)
1605
if (attribute.Use ==
XmlSchemaUse
.Prohibited) return null;
1635
accessor.IsOptional = attribute.Use !=
XmlSchemaUse
.Required;
System.Web.Services.Description (12)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (12)
3848
if (((global::System.Xml.Schema.
XmlSchemaUse
)o.@Use) != Xml.Schema.
XmlSchemaUse
.@None) {
3849
WriteAttribute(@"use", @"", Write35_XmlSchemaUse(((global::System.Xml.Schema.
XmlSchemaUse
)o.@Use)));
3856
private string Write35_XmlSchemaUse(global::System.Xml.Schema.
XmlSchemaUse
v) {
3859
case Xml.Schema.
XmlSchemaUse
.@Optional: s = @"optional"; break;
3860
case Xml.Schema.
XmlSchemaUse
.@Prohibited: s = @"prohibited"; break;
3861
case Xml.Schema.
XmlSchemaUse
.@Required: s = @"required"; break;
10665
private global::System.Xml.Schema.
XmlSchemaUse
Read35_XmlSchemaUse(string s) {
10667
case @"optional": return Xml.Schema.
XmlSchemaUse
.@Optional;
10668
case @"prohibited": return Xml.Schema.
XmlSchemaUse
.@Prohibited;
10669
case @"required": return Xml.Schema.
XmlSchemaUse
.@Required;
10670
default: throw CreateUnknownConstantException(s, typeof(global::System.Xml.Schema.
XmlSchemaUse
));
System.Xml (1)
System.Xml.cs (1)
95
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaUse
))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
94
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaUse
))]