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