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