3 overrides of TypeCode
System.Private.Xml (3)
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
579public override XmlTypeCode TypeCode 841public override XmlTypeCode TypeCode 1045public override XmlTypeCode TypeCode
69 references to TypeCode
System.Private.Xml (69)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
1413switch (keyType.TypeCode) 1434Debug.Fail($"Sorting over datatype {keyType.TypeCode} is not allowed.");
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (2)
30storageType = s_typeCodeToStorage[(int)qyTyp.TypeCode]; 38storageType = s_typeCodeToCachedStorage[(int)qyTyp.TypeCode];
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (11)
912Debug.Assert(ndCond.Left.XmlType!.TypeCode == XmlTypeCode.Boolean); 1433_helper.CallArithmeticOp(QilNodeType.Negate, ndNeg.XmlType!.TypeCode); 1484_helper.CallArithmeticOp(ndOp.NodeType, ndOp.XmlType!.TypeCode); 1627if (ndParsedTagName.Right.XmlType!.TypeCode == XmlTypeCode.String) 1737code = ndComp.Left.XmlType.TypeCode; 3670else if ((ndActualArg.XmlType.IsSingleton && clrTypeFormalArg == itemType) || ndActualArg.XmlType.TypeCode == XmlTypeCode.None) 3689if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(clrTypeActualArg)) 4105Debug.Assert(ndName.XmlType!.TypeCode == XmlTypeCode.QName, "Element or attribute name must have QName type."); 4176if ((ndName as QilBinary)!.Right.XmlType!.TypeCode == XmlTypeCode.String) 4229ZeroCompare(relOp, ndSecond.XmlType!.TypeCode == XmlTypeCode.Boolean); 4697nd.XmlType!.TypeCode == XmlTypeCode.None,
System\Xml\Xsl\QIL\QilPatternFactory.cs (1)
229Debug.Assert(arg.XmlType!.TypeCode == XmlTypeCode.Boolean && arg.XmlType.IsSingleton,
System\Xml\Xsl\QIL\QilTypeChecker.cs (2)
475return node.Left.XmlType!.TypeCode == XmlTypeCode.None ? node.Right.XmlType! : node.Left.XmlType!; 1066if (body.XmlType!.TypeCode == XmlTypeCode.None)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (3)
286switch (xmlTypeFormalArg.TypeCode) 301Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}"); 307if (xmlTypeFormalArg.TypeCode == XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(objActualArgs[i].GetType()))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (3)
486switch (xmlType.TypeCode) 579switch (xmlType.TypeCode) 633switch (XsltConvert.InferXsltType(sourceType).TypeCode)
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
255switch (destinationType.TypeCode)
System\Xml\Xsl\XmlQueryType.cs (21)
193return (thisPrime.TypeCode == thatPrime.TypeCode && 209if (thisItem.TypeCode == thatItem.TypeCode && 293get { return (s_typeCodeToFlags[(int)TypeCode] & TypeFlags.IsNode) != 0; } 302get { return (s_typeCodeToFlags[(int)TypeCode] & TypeFlags.IsAtomicValue) != 0; } 311get { return (s_typeCodeToFlags[(int)TypeCode] & TypeFlags.IsNumeric) != 0; } 342hash = (int)TypeCode; 410sb.Append(this[i].TypeCode.ToString()); 492if (TypeCode != baseType.TypeCode) 499XmlSchemaType builtInType = XmlSchemaType.GetBuiltInSimpleType(baseType.TypeCode); 504return s_typeCodeDerivation[TypeCode, baseType.TypeCode]; 531if (this.TypeCode == other.TypeCode && (this.NodeKinds & (XmlNodeKindFlags.Document | XmlNodeKindFlags.Element | XmlNodeKindFlags.Attribute)) != 0) 533if (this.TypeCode == XmlTypeCode.Node) 568s = s_typeNames[(int)TypeCode]; 570switch (TypeCode) 589s = $"<:{s_typeNames[(int)TypeCode]}"; 596s = s_typeNames[(int)TypeCode];
System\Xml\Xsl\XmlQueryTypeFactory.cs (4)
755_code = t.TypeCode; 761if (_code == t.TypeCode) 975if (prime.TypeCode == XmlTypeCode.None) 1047get { return _prime.TypeCode; }
System\Xml\Xsl\XPath\XPathBuilder.cs (9)
228return CompareNodeSetAndValue(op, /*nodeset:*/left, /*val:*/right, rightType.TypeCode); 232return CompareNodeSetAndValue(op, /*nodeset:*/right, /*val:*/left, leftType.TypeCode); 237leftType.TypeCode == XmlTypeCode.Boolean || rightType.TypeCode == XmlTypeCode.Boolean ? XmlTypeCode.Boolean : 238leftType.TypeCode == XmlTypeCode.Double || rightType.TypeCode == XmlTypeCode.Double ? XmlTypeCode.Double : 261XmlTypeCode compType = rightType.TypeCode == XmlTypeCode.Boolean ? XmlTypeCode.Boolean : XmlTypeCode.Double; 266XmlTypeCode compType = leftType.TypeCode == XmlTypeCode.Boolean ? XmlTypeCode.Boolean : XmlTypeCode.Double; 477if (predicate.XmlType!.TypeCode == XmlTypeCode.Double)
System\Xml\Xsl\XPath\XPathQilFactory.cs (5)
41Debug.Assert(result == (xt.TypeCode == XmlTypeCode.Item || xt.TypeCode == XmlTypeCode.AnyAtomicType), "What else can it be?"); 189switch (n.XmlType!.TypeCode) 218switch (n.XmlType!.TypeCode) 248switch (n.XmlType!.TypeCode)
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
244switch (xmlTypeFormalArg.TypeCode) 251default: Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.TypeCode}"); break; 741switch (n.XmlType!.TypeCode)
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
61Debug.Assert(value.XmlType!.TypeCode == XmlTypeCode.String);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (1)
23switch (xt.TypeCode)