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