11 instantiations of XmlSchemaChoice
System.Private.Xml (11)
System\Xml\Schema\Inference\Infer.cs (1)
1171XmlSchemaChoice xsc = new XmlSchemaChoice();
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
1171(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1236XmlSchemaChoice newChoice = new XmlSchemaChoice();
System\Xml\Schema\SchemaSetCompiler.cs (4)
1242XmlSchemaChoice choice = new XmlSchemaChoice(); 1314(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1368XmlSchemaChoice newChoice = new XmlSchemaChoice(); 1801XmlSchemaChoice virtualChoice = new XmlSchemaChoice();
System\Xml\Schema\XmlSchemaSubstitutionGroup.cs (1)
30private readonly XmlSchemaChoice _choice = new XmlSchemaChoice();
System\Xml\Schema\XsdBuilder.cs (1)
1972builder._xso = builder._particle = builder._choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaExporter.cs (1)
657XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1098XmlSchemaChoice choice = new XmlSchemaChoice();
106 references to XmlSchemaChoice
netstandard (1)
netstandard.cs (1)
2307[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaChoice))]
System.Data.Common (6)
System\Data\XMLSchema.cs (6)
536bool isChoice = FromInference && (pt is XmlSchemaChoice); // currently we add this support for choice, just for inference 879if (pt is XmlSchemaChoice) 880return ((XmlSchemaChoice)pt).Items; 910if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 2672else if (el is XmlSchemaChoice) 2674XmlSchemaObjectCollection choiceItems = ((XmlSchemaChoice)el).Items;
System.Private.Xml (97)
System\Xml\Schema\Inference\Infer.cs (4)
1054if (xss.Items[0].GetType() == typeof(XmlSchemaChoice)) 1056XmlSchemaChoice xsch = (XmlSchemaChoice)xss.Items[0]; 1171XmlSchemaChoice xsc = new XmlSchemaChoice();
System\Xml\Schema\Preprocessor.cs (2)
1940if (particle is XmlSchemaChoice) 1942items = ((XmlSchemaChoice)particle).Items;
System\Xml\Schema\SchemaCollectionCompiler.cs (24)
1056XmlSchemaChoice? choice = ctp as XmlSchemaChoice; 1086else if (particle is XmlSchemaChoice) 1088return CanonicalizeChoice((XmlSchemaChoice)particle, root, substitution); 1111XmlSchemaChoice choice = (XmlSchemaChoice)substitutionGroup.Choice.Clone(); 1161else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) 1171(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1231private XmlSchemaParticle CanonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) 1233XmlSchemaChoice oldChoice = choice; 1236XmlSchemaChoice newChoice = new XmlSchemaChoice(); 1244if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) 1246XmlSchemaChoice particleChoice = (XmlSchemaChoice)p1; 1375else if (baseParticle is XmlSchemaChoice) 1381else if (derivedParticle is XmlSchemaChoice) 1387return IsSequenceFromChoice((XmlSchemaSequence)derivedParticle, (XmlSchemaChoice)baseParticle); 1548private bool IsSequenceFromChoice(XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice) 1622else if (particle is XmlSchemaChoice) 1624if (((XmlSchemaChoice)particle).Items.Count == 0) 1632XmlSchemaChoice choice = (XmlSchemaChoice)particle; 2468string delimiter = (particle is XmlSchemaChoice) ? " | " : ", "; 2525bool isChoice = particle is XmlSchemaChoice;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
1607XmlSchemaChoice? choice = particle as XmlSchemaChoice;
System\Xml\Schema\SchemaSetCompiler.cs (32)
1185XmlSchemaChoice? choice = ctp as XmlSchemaChoice; 1217else if (particle is XmlSchemaChoice) 1219return CanonicalizeChoice((XmlSchemaChoice)particle, root); 1242XmlSchemaChoice choice = new XmlSchemaChoice(); 1302else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) 1314(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1363private XmlSchemaParticle CanonicalizeChoice(XmlSchemaChoice choice, bool root) 1365XmlSchemaChoice oldChoice = choice; 1368XmlSchemaChoice newChoice = new XmlSchemaChoice(); 1377if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) 1379XmlSchemaChoice p1Choice = (p1 as XmlSchemaChoice)!; 1463XmlSchemaChoice? xsc; 1479else if ((xsc = (particle as XmlSchemaChoice)) != null) 1535if (newBaseParticle is XmlSchemaChoice) 1585else if (derivedParticle is XmlSchemaChoice || derivedParticle is XmlSchemaAny) 1591else if (baseParticle is XmlSchemaChoice) 1597else if (derivedParticle is XmlSchemaChoice) 1599XmlSchemaChoice baseChoice = (baseParticle as XmlSchemaChoice)!; 1600XmlSchemaChoice derivedChoice = (derivedParticle as XmlSchemaChoice)!; 1613if (IsSequenceFromChoice((XmlSchemaSequence)derivedParticle, (XmlSchemaChoice)baseParticle)) 1799else if (baseGroupBase is XmlSchemaChoice) 1801XmlSchemaChoice virtualChoice = new XmlSchemaChoice(); 1826private bool IsChoiceFromChoiceSubstGroup(XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice) 1914private bool IsSequenceFromChoice(XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice) 1967XmlSchemaChoice? choice = particle as XmlSchemaChoice; 2907bool isChoice = particle is XmlSchemaChoice;
System\Xml\Schema\XmlSchemaChoice.cs (1)
15XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (1)
24XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (1)
24XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexType.cs (1)
180XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaGroup.cs (1)
24[XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaSequence.cs (1)
14XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaSubstitutionGroup.cs (2)
30private readonly XmlSchemaChoice _choice = new XmlSchemaChoice(); 33internal XmlSchemaChoice Choice
System\Xml\Schema\XsdBuilder.cs (2)
656private XmlSchemaChoice? _choice; 1015_choice = (XmlSchemaChoice)container;
System\Xml\Serialization\SchemaObjectWriter.cs (14)
110else if (o is XmlSchemaChoice c) 413else if (t == typeof(XmlSchemaChoice)) 415Write52_XmlSchemaChoice((XmlSchemaChoice)o); 834else if (o.@Particle is XmlSchemaChoice) 836Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 941else if (o.@Particle is XmlSchemaChoice) 943Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 1129private void Write52_XmlSchemaChoice(XmlSchemaChoice? o) 1183else if (ai is XmlSchemaChoice) 1185Write52_XmlSchemaChoice((XmlSchemaChoice)ai); 1240else if (o.@Particle is XmlSchemaChoice) 1242Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 1266else if (o.@Particle is XmlSchemaChoice) 1268Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle);
System\Xml\Serialization\XmlSchemaExporter.cs (3)
621if (seq.Items[0] is XmlSchemaChoice) 623type.Particle = (XmlSchemaChoice)seq.Items[0]; 657XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaImporter.cs (6)
757if (group is XmlSchemaChoice) 758ImportChoiceGroup((XmlSchemaChoice)group, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref needExplicitOrder, allowDuplicates); 974if (!groupRepeats && !(group is XmlSchemaChoice) && group.Items.Count > 1) 1042if (item is XmlSchemaChoice) 1098XmlSchemaChoice choice = new XmlSchemaChoice(); 1287if (item is XmlSchemaChoice choice)
System.Xml (1)
System.Xml.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaChoice))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
31[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaChoice))]