13 instantiations of XmlSchemaChoice
System.Web.Services (1)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
9334o = new global::System.Xml.Schema.XmlSchemaChoice();
System.Xml (12)
System\Xml\Schema\Inference\Infer.cs (1)
1184XmlSchemaChoice xsc = new XmlSchemaChoice();
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
932(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 985XmlSchemaChoice newChoice = new XmlSchemaChoice();
System\Xml\Schema\SchemaSetCompiler.cs (4)
978XmlSchemaChoice choice = new XmlSchemaChoice(); 1030(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1073XmlSchemaChoice newChoice = new XmlSchemaChoice(); 1424XmlSchemaChoice virtualChoice = new XmlSchemaChoice();
System\Xml\Schema\XmlSchemaSubstitutionGroup.cs (1)
30XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Schema\XsdBuilder.cs (1)
1817builder.xso = builder.particle = builder.choice = new XmlSchemaChoice();
System\Xml\Serialization\SoapSchemaExporter.cs (1)
245XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaExporter.cs (1)
596XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1036XmlSchemaChoice choice = new XmlSchemaChoice();
130 references to XmlSchemaChoice
System.Data (6)
fx\src\data\System\Data\XMLSchema.cs (6)
468bool isChoice = this.FromInference && (pt is XmlSchemaChoice);// currently we add this support for choice, just for inference 752if (pt is XmlSchemaChoice) 753return ((XmlSchemaChoice)pt).Items; 778if (this.FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is XmlSchemaComplexType)) 2304else if (el is XmlSchemaChoice){ // should we check for inference? 2305XmlSchemaObjectCollection choiceItems = ((XmlSchemaChoice)el).Items;
System.Data.Services.Design (2)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
125XmlSchemaChoice schemaChoice = expected as XmlSchemaChoice;
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (4)
29{ typeof(XmlSchemaChoice), ChoiceHandler }, 79{ typeof(XmlSchemaChoice), ChoiceHandler }, 204XmlSchemaChoice choice = (XmlSchemaChoice)schemaObject;
System.Web.Services (16)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (16)
2080else if (o.@Particle is global::System.Xml.Schema.XmlSchemaChoice) { 2081Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)o.@Particle), false, false); 2130if (ai is global::System.Xml.Schema.XmlSchemaChoice) { 2131Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)ai), false, false); 3156if (o.@Particle is global::System.Xml.Schema.XmlSchemaChoice) { 3157Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)o.@Particle), false, false); 3400void Write54_XmlSchemaChoice(string n, string ns, global::System.Xml.Schema.XmlSchemaChoice o, bool isNullable, bool needType) { 3407if (t == typeof(global::System.Xml.Schema.XmlSchemaChoice)) { 3438else if (ai is global::System.Xml.Schema.XmlSchemaChoice) { 3439Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)ai), false, false); 3541else if (o.@Particle is global::System.Xml.Schema.XmlSchemaChoice) { 3542Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)o.@Particle), false, false); 3613else if (o.@Particle is global::System.Xml.Schema.XmlSchemaChoice) { 3614Write54_XmlSchemaChoice(@"choice", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaChoice)o.@Particle), false, false); 9321global::System.Xml.Schema.XmlSchemaChoice Read54_XmlSchemaChoice(bool isNullable, bool checkType) { 9333global::System.Xml.Schema.XmlSchemaChoice o;
System.Xml (102)
System\Xml\Schema\Inference\Infer.cs (4)
1067if (xss.Items[0].GetType() == typeof (XmlSchemaChoice)) 1069XmlSchemaChoice xsch = (XmlSchemaChoice) xss.Items[0]; 1184XmlSchemaChoice xsc = new XmlSchemaChoice();
System\Xml\Schema\Preprocessor.cs (2)
1598if (particle is XmlSchemaChoice) { 1599items = ((XmlSchemaChoice)particle).Items;
System\Xml\Schema\SchemaCollectionCompiler.cs (23)
843XmlSchemaChoice choice = ctp as XmlSchemaChoice; 866else if (particle is XmlSchemaChoice) { 867return CannonicalizeChoice((XmlSchemaChoice)particle, root, substitution); 884XmlSchemaChoice choice = (XmlSchemaChoice)substitutionGroup.Choice.Clone(); 924else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) { 932(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 982private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) { 983XmlSchemaChoice oldChoice = choice; 985XmlSchemaChoice newChoice = new XmlSchemaChoice(); 991if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 992XmlSchemaChoice particleChoice = (XmlSchemaChoice)p1; 1090else if (baseParticle is XmlSchemaChoice ) { 1094else if (derivedParticle is XmlSchemaChoice) { 1098return IsSequenceFromChoice((XmlSchemaSequence)derivedParticle, (XmlSchemaChoice)baseParticle); 1228private bool IsSequenceFromChoice(XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice) { 1288else if (particle is XmlSchemaChoice) { 1289if (((XmlSchemaChoice)particle).Items.Count == 0) { 1295XmlSchemaChoice choice = (XmlSchemaChoice) particle; 2073bool isChoice = particle is XmlSchemaChoice;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
1285XmlSchemaChoice choice = particle as XmlSchemaChoice;
System\Xml\Schema\SchemaSetCompiler.cs (32)
936XmlSchemaChoice choice = ctp as XmlSchemaChoice; 960else if (particle is XmlSchemaChoice) { 961return CannonicalizeChoice((XmlSchemaChoice)particle, root); 978XmlSchemaChoice choice = new XmlSchemaChoice(); 1022else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) { 1030(groupBase is XmlSchemaChoice) ? (XmlSchemaGroupBase)new XmlSchemaChoice() : 1070private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root) { 1071XmlSchemaChoice oldChoice = choice; 1073XmlSchemaChoice newChoice = new XmlSchemaChoice(); 1080if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 1081XmlSchemaChoice p1Choice = p1 as XmlSchemaChoice; 1145XmlSchemaChoice xsc; 1158else if ( (xsc = (particle as XmlSchemaChoice)) != null ) { 1203if (newBaseParticle is XmlSchemaChoice) { //Base Element is subs grp head. 1240else if (derivedParticle is XmlSchemaChoice || derivedParticle is XmlSchemaAny) { 1245else if (baseParticle is XmlSchemaChoice ) { 1249else if (derivedParticle is XmlSchemaChoice) { 1250XmlSchemaChoice baseChoice = baseParticle as XmlSchemaChoice; 1251XmlSchemaChoice derivedChoice = derivedParticle as XmlSchemaChoice; 1261if(IsSequenceFromChoice((XmlSchemaSequence)derivedParticle, (XmlSchemaChoice) baseParticle)) { 1423else if (baseGroupBase is XmlSchemaChoice) { 1424XmlSchemaChoice virtualChoice = new XmlSchemaChoice(); 1446private bool IsChoiceFromChoiceSubstGroup(XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice) { 1515private bool IsSequenceFromChoice(XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice) { 1557XmlSchemaChoice choice = particle as XmlSchemaChoice; 2430bool isChoice = particle is XmlSchemaChoice;
System\Xml\Schema\XmlSchemaChoice.cs (1)
26XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (1)
38XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (1)
38XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaComplexType.cs (1)
190XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaGroup.cs (1)
38[XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaSequence.cs (1)
25XmlElement("choice", typeof(XmlSchemaChoice)),
System\Xml\Schema\XmlSchemaSubstitutionGroup.cs (2)
30XmlSchemaChoice choice = new XmlSchemaChoice(); 33internal XmlSchemaChoice Choice {
System\Xml\Schema\XsdBuilder.cs (2)
654private XmlSchemaChoice choice; 977this.choice = (XmlSchemaChoice)container;
System\Xml\Serialization\SchemaObjectWriter.cs (16)
94else if (o is XmlSchemaChoice) { 95XmlSchemaChoice c = (XmlSchemaChoice)o; 342else if (t == typeof(XmlSchemaChoice)) { 343Write52_XmlSchemaChoice((XmlSchemaChoice)o); 692else if (o.@Particle is XmlSchemaChoice) { 693Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 783else if (o.@Particle is XmlSchemaChoice) { 784Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 944void Write52_XmlSchemaChoice(XmlSchemaChoice o) { 992else if (ai is XmlSchemaChoice) { 993Write52_XmlSchemaChoice((XmlSchemaChoice)ai); 1040else if (o.@Particle is XmlSchemaChoice) { 1041Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle); 1062else if (o.@Particle is XmlSchemaChoice) { 1063Write52_XmlSchemaChoice((XmlSchemaChoice)o.@Particle);
System\Xml\Serialization\SoapSchemaExporter.cs (1)
245XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
351if (group is XmlSchemaChoice) {
System\Xml\Serialization\XmlSchemaExporter.cs (3)
569if (seq.Items[0] is XmlSchemaChoice) { 570type.Particle = (XmlSchemaChoice)seq.Items[0]; 596XmlSchemaChoice choice = new XmlSchemaChoice();
System\Xml\Serialization\XmlSchemaImporter.cs (8)
748if (group is XmlSchemaChoice) 749ImportChoiceGroup((XmlSchemaChoice)group, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref needExplicitOrder, allowDuplicates); 936if (!groupRepeats && !(group is XmlSchemaChoice) && group.Items.Count > 1) { 991if (item is XmlSchemaChoice) 1036XmlSchemaChoice choice = new XmlSchemaChoice(); 1205if (item is XmlSchemaChoice) { 1206XmlSchemaChoice choice = (XmlSchemaChoice)item;