15 writes to Use
System.Private.Xml (15)
System\Xml\Schema\Inference\Infer.cs (9)
311attributeReference.Use = XmlSchemaUse.Required; 315attributeReference.Use = XmlSchemaUse.Optional; 371attributeReference.Use = XmlSchemaUse.Required; 375attributeReference.Use = XmlSchemaUse.Optional; 421xsa.Use = XmlSchemaUse.Required; 423xsa.Use = XmlSchemaUse.Optional; 1427attr.Use = XmlSchemaUse.Optional; 1434attr.Use = XmlSchemaUse.Optional; 1440attr.Use = XmlSchemaUse.Optional;
System\Xml\Schema\XsdBuilder.cs (1)
1276builder._attribute!.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", s_useStringValues);
System\Xml\Serialization\XmlSchemaExporter.cs (5)
695attribute.Use = XmlSchemaUse.Optional; 727attribute.Use = XmlSchemaUse.None; 730attribute.Use = XmlSchemaUse.Required; 750attribute.Use = XmlSchemaUse.None; 756refAttribute.Use = XmlSchemaUse.None;
55 references to Use
System.Data.Common (4)
System\Data\XMLSchema.cs (4)
2310column.AllowDBNull = !(attrib.Use == XmlSchemaUse.Required); 2324if (attrib.Use == XmlSchemaUse.Prohibited) 2343string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2344if ((attr.Use == XmlSchemaUse.Optional) && (strDefault == null))
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
1379if (attribute.Use == XmlSchemaUse.Prohibited) 1385if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use == XmlSchemaUse.Required)
System.Private.Xml (49)
System\Xml\Schema\Preprocessor.cs (3)
1158if (attribute.Use != XmlSchemaUse.None) 1220if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (14)
754if (attribute!.Use != XmlSchemaUse.Prohibited) 779if (attribute!.Use == XmlSchemaUse.Prohibited) 1732if (attribute.Use != XmlSchemaUse.Prohibited) 1792if (attribute.Use != XmlSchemaUse.Prohibited) 1796if (attribute.Use != XmlSchemaUse.Prohibited || 1797(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1822if (attributeValue!.Use != XmlSchemaUse.Prohibited || 1823(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1859Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1860if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.Use == XmlSchemaUse.Prohibited) 1893if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 1897else if (attribute.Use == XmlSchemaUse.Prohibited) 2085switch (xa.Use)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
832if (attribute.Use != XmlSchemaUse.None) 892if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaSetCompiler.cs (22)
855if (attribute!.Use == XmlSchemaUse.Prohibited) 2086if (attr.Use == XmlSchemaUse.Prohibited) 2152if (attr.Use != XmlSchemaUse.Prohibited) 2156if (attr.Use != XmlSchemaUse.Prohibited || 2157(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2182if (attribute!.Use != XmlSchemaUse.Prohibited || 2183(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2224Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 2225if (attributeBase.Use != XmlSchemaUse.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType) 2254if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2258else if (attributeBase.Use == XmlSchemaUse.Required && (attribute.Use != XmlSchemaUse.Required)) 2262else if (attribute.Use == XmlSchemaUse.Prohibited) 2314if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2318else if (attributeBase.Use == XmlSchemaUse.Required && attribute.Use != XmlSchemaUse.Required) 2322else if (attribute.Use == XmlSchemaUse.Prohibited) 2335else if (attributeBase.Use == XmlSchemaUse.Required) 2531if (xa.Use == XmlSchemaUse.Required) 2557switch (xa.Use)
System\Xml\Schema\XmlSchemaComplexType.cs (1)
300if (attribute!.Use != XmlSchemaUse.Prohibited)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
326XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use;
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1481if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc!.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) 1605if (attribute.Use == XmlSchemaUse.Prohibited) return null; 1635accessor.IsOptional = attribute.Use != XmlSchemaUse.Required;