3 overrides of Cardinality
System.Data.SqlXml (3)
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
609
public override XmlQueryCardinality
Cardinality
{
864
public override XmlQueryCardinality
Cardinality
{
1047
public override XmlQueryCardinality
Cardinality
{
41 references to Cardinality
System.Data.SqlXml (41)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (4)
900
if ( ( (local1).XmlType ).
Cardinality
== XmlQueryCardinality.Zero ) {
921
if ( ( (local1).XmlType ).
Cardinality
== XmlQueryCardinality.Zero ) {
942
if ( ( (local1).XmlType ).
Cardinality
== XmlQueryCardinality.Zero ) {
963
if ( ( (local1).XmlType ).
Cardinality
== XmlQueryCardinality.Zero ) {
System\Xml\Xsl\QIL\QilReplaceVisitor.cs (1)
79
Debug.Assert(newType.IsSubtypeOf(XmlQueryTypeFactory.AtMost(oldType, oldType.
Cardinality
)), "Replace shouldn't relax original type");
System\Xml\Xsl\QIL\QilTypeChecker.cs (8)
398
return XmlQueryTypeFactory.AtMost(node.Left.XmlType, node.Left.XmlType.
Cardinality
);
541
XmlQueryCardinality variableCard = node.Variable.NodeType == QilNodeType.Let ? XmlQueryCardinality.One : node.Variable.Binding.XmlType.
Cardinality
;
544
return XmlQueryTypeFactory.PrimeProduct(bodyType, variableCard * bodyType.
Cardinality
);
557
return XmlQueryTypeFactory.AtMost(node.Variable.Binding.XmlType, node.Variable.Binding.XmlType.
Cardinality
);
573
return XmlQueryTypeFactory.PrimeProduct(varType, varType.
Cardinality
);
945
if (type.
Cardinality
== XmlQueryCardinality.More)
948
if (type.
Cardinality
== XmlQueryCardinality.NotOne)
968
return XmlQueryTypeFactory.AtMost(((QilTargetType)body).TargetType, variable.Binding.XmlType.
Cardinality
);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
674
if (!(card <= typBase.
Cardinality
))
System\Xml\Xsl\XmlQueryType.cs (15)
132
if (!(
Cardinality
<= baseType.
Cardinality
) || (!IsDod && baseType.IsDod))
171
if (
Cardinality
.NeverSubset(baseType.
Cardinality
))
201
if (
Cardinality
!= that.
Cardinality
|| IsDod != that.IsDod)
277
get { return
Cardinality
<= XmlQueryCardinality.Zero; }
284
get { return
Cardinality
<= XmlQueryCardinality.One; }
291
get { return XmlQueryCardinality.Zero <=
Cardinality
; }
298
get { return XmlQueryCardinality.More <=
Cardinality
; }
357
hash += (hash << 7) ^
Cardinality
.GetHashCode();
405
sb.Append(
Cardinality
.ToString(format));
421
if (
Cardinality
== XmlQueryCardinality.None) {
424
else if (
Cardinality
== XmlQueryCardinality.Zero) {
458
sb.Append(
Cardinality
.ToString());
System\Xml\Xsl\XmlQueryTypeFactory.cs (9)
80
return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.
Cardinality
| right.
Cardinality
);
96
XmlQueryCardinality card = types[0].
Cardinality
;
100
card |= types[i].
Cardinality
;
122
return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.
Cardinality
+ right.
Cardinality
);
149
if (t.
Cardinality
== c && !t.IsDod)
162
return PrimeProduct(t, t.
Cardinality
* c);
720
Debug.Assert(t.
Cardinality
== XmlQueryCardinality.One, "ChoiceType member types must be prime types.");
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
287
qilAxis.XmlType = T.PrimeProduct(T.NodeChoice(required), qilAxis.XmlType.
Cardinality
);
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2358
if (nsVar.XmlType.
Cardinality
== XmlQueryCardinality.One) {
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
108
filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType.
Cardinality
);