2 types derived from XPathItem
System.Xml (2)
System\Xml\Schema\XmlAtomicValue.cs (1)
20public sealed class XmlAtomicValue : XPathItem, ICloneable {
System\Xml\XPath\XPathNavigator.cs (1)
30public abstract class XPathNavigator : XPathItem, ICloneable, IXPathNavigable, IXmlNamespaceResolver {
164 references to XPathItem
System.Data.SqlXml (156)
System\Xml\Xsl\IlGen\GenerateHelper.cs (27)
86else if (storageType == typeof(XPathItem)) { 107ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_Value"); 109ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_ValueAsInt"); 111ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_ValueAsLong"); 113ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_ValueAsDateTime"); 115ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_ValueAsDouble"); 117ValueAs = XmlILMethods.GetMethod(typeof(XPathItem), "get_ValueAsBoolean"); 122else if (storageType != typeof(XPathItem) && storageType != typeof(XPathNavigator)) 247public static readonly MethodInfo ItemMatchesCode = GetMethod(typeof(XmlQueryRuntime), "MatchesXmlType", typeof(XPathItem), typeof(XmlTypeCode)); 248public static readonly MethodInfo ItemMatchesType = GetMethod(typeof(XmlQueryRuntime), "MatchesXmlType", typeof(XPathItem), typeof(int)); 253public static readonly MethodInfo SeqMatchesCode = GetMethod(typeof(XmlQueryRuntime), "MatchesXmlType", typeof(IList<XPathItem>), typeof(XmlTypeCode)); 254public static readonly MethodInfo SeqMatchesType = GetMethod(typeof(XmlQueryRuntime), "MatchesXmlType", typeof(IList<XPathItem>), typeof(int)); 274public static readonly MethodInfo ItemIsNode = GetMethod(typeof(XPathItem), "get_IsNode"); 275public static readonly MethodInfo Value = GetMethod(typeof(XPathItem), "get_Value"); 276public static readonly MethodInfo ValueAsAny = GetMethod(typeof(XPathItem), "ValueAs", typeof(Type), typeof(IXmlNamespaceResolver)); 367public static readonly MethodInfo ItemToBool = GetMethod(typeof(XsltConvert), "ToBoolean", typeof(XPathItem)); 368public static readonly MethodInfo ItemToDbl = GetMethod(typeof(XsltConvert), "ToDouble", typeof(XPathItem)); 369public static readonly MethodInfo ItemToStr = GetMethod(typeof(XsltConvert), "ToString", typeof(XPathItem)); 370public static readonly MethodInfo ItemToNode = GetMethod(typeof(XsltConvert), "ToNode", typeof(XPathItem)); 371public static readonly MethodInfo ItemToNodes = GetMethod(typeof(XsltConvert), "ToNodeSet", typeof(XPathItem)); 373public static readonly MethodInfo ItemsToBool = GetMethod(typeof(XsltConvert), "ToBoolean", typeof(IList<XPathItem>)); 374public static readonly MethodInfo ItemsToDbl = GetMethod(typeof(XsltConvert), "ToDouble", typeof(IList<XPathItem>)); 375public static readonly MethodInfo ItemsToNode = GetMethod(typeof(XsltConvert), "ToNode", typeof(IList<XPathItem>)); 376public static readonly MethodInfo ItemsToNodes = GetMethod(typeof(XsltConvert), "ToNodeSet", typeof(IList<XPathItem>)); 377public static readonly MethodInfo ItemsToStr = GetMethod(typeof(XsltConvert), "ToString", typeof(IList<XPathItem>)); 410StorageMethods[typeof(XPathItem)] = new XmlILStorageMethods(typeof(XPathItem));
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (4)
600Debug.Assert(this.storage.ItemStorageType == typeof(XPathItem) || storageTypeDest == typeof(XPathItem), 624if (this.storage.ItemStorageType == typeof(XPathItem)) { 637Debug.Assert(storageTypeDest == typeof(XPathItem), "Must be converting from XPathNavigator to XPathItem");
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (8)
39return typeof(XPathItem); 46return typeof(IList<XPathItem>); 53typeof(XPathItem), // XmlTypeCode.None 54typeof(XPathItem), // XmlTypeCode.Item 63typeof(XPathItem), // XmlTypeCode.AnyAtomicType 111typeof(IList<XPathItem>), // XmlTypeCode.None 112typeof(IList<XPathItem>), // XmlTypeCode.Item 121typeof(IList<XPathItem>), // XmlTypeCode.AnyAtomicType
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (21)
332this.iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), true); 351this.iterCurr.EnsureItemStorageType(nd.XmlType, typeof(XPathItem)); 356this.iterCurr.EnsureItemStorageType(nd.XmlType, typeof(XPathItem)); 427this.iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), false); 1071this.iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), false); 2960Debug.Assert(this.iterCurr.Storage.ItemStorageType == typeof(XPathItem), "If !IsNode, then storage type should be Item"); 2983NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.IsSingleton); 2993NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.IsSingleton); 3310LocalBuilder locArgs = this.helper.DeclareLocal("$$$args", typeof(IList<XPathItem>[])); 3321this.helper.Emit(OpCodes.Newarr, typeof(IList<XPathItem>)); 3332this.helper.Emit(OpCodes.Ldelema, typeof(IList<XPathItem>)); 3334NestedVisitEnsureCache(ndArg, typeof(XPathItem)); 3337this.helper.Emit(OpCodes.Stobj, typeof(IList<XPathItem>)); 3345this.iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), true); 3404else if (clrTypeFormalArg == XmlILMethods.StorageMethods[typeof(XPathItem)].IListType) { 3406NestedVisitEnsureStack(ndActualArg, typeof(XPathItem), true); 3412else if (ndActualArg.XmlType.IsSingleton && clrTypeFormalArg == typeof(XPathItem)) { 3414NestedVisitEnsureStack(ndActualArg, typeof(XPathItem), false); 3445this.helper.Emit(OpCodes.Ldsfld, XmlILMethods.StorageMethods[typeof(XPathItem)].SeqEmpty); 3534NestedVisitEnsureStack(ndConv.Source, typeof(XPathItem), !typSrc.IsSingleton); 4339this.iterCurr.Storage.ItemStorageType == typeof(XPathItem) ||
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (4)
76public static IList<XPathItem> NavigatorsToItems(IList<XPathNavigator> listNavigators) { 78IList<XPathItem> listItems = listNavigators as IList<XPathItem>; 86public static IList<XPathNavigator> ItemsToNavigators(IList<XPathItem> listItems) {
System\Xml\Xsl\Runtime\XmlQueryContext.cs (3)
231public IList<XPathItem> InvokeXsltLateBoundFunction(string name, string namespaceUri, IList<XPathItem>[] args) { 292return (IList<XPathItem>) this.runtime.ChangeTypeXsltResult(XmlQueryTypeFactory.ItemS, objRet);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
792public void WriteItem(XPathItem item) {
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (16)
175Debug.Assert(this.globalValues[idx] is IList<XPathItem>, "Only debugger should call this method, and all global values should have type item* in debugging scenarios."); 189Debug.Assert(this.globalValues[idx] is IList<XPathItem>, "Only debugger should call this method, and all global values should have type item* in debugging scenarios."); 192this.globalValues[idx] = (IList<XPathItem>) XmlAnyListConverter.ItemList.ChangeType(value, typeof(XPathItem[]), null); 203XPathItem item = seq[0] as XPathItem; 510IList<XPathItem> seq = (IList<XPathItem>) value; 512XPathItem item = seq[0]; 664public bool MatchesXmlType(IList<XPathItem> seq, int indexType) { 689public bool MatchesXmlType(XPathItem item, int indexType) { 696public bool MatchesXmlType(IList<XPathItem> seq, XmlTypeCode code) { 706public bool MatchesXmlType(XPathItem item, XmlTypeCode code) { 741private XmlQueryType CreateXmlType(XPathItem item) { 926public IList<XPathItem> EndSequenceConstruction(out XmlQueryOutput output) { 927IList<XPathItem> seq = ((XmlCachedSequenceWriter) this.output.SequenceWriter).ResultSequence;
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (26)
29private static readonly Type XPathItemType = typeof(XPathItem); 385public sealed class XmlQueryItemSequence : XmlQuerySequence<XPathItem> { 404public static XmlQueryItemSequence CreateOrReuse(XmlQueryItemSequence seq, XPathItem item) { 429public XmlQueryItemSequence(XPathItem item) : base(1) { 436public void AddClone(XPathItem item) { 448public sealed class XmlQueryNodeSequence : XmlQuerySequence<XPathNavigator>, IList<XPathItem> { 593IEnumerator<XPathItem> IEnumerable<XPathItem>.GetEnumerator() { 594return new IListEnumerator<XPathItem>(this); 604bool ICollection<XPathItem>.IsReadOnly { 611void ICollection<XPathItem>.Add(XPathItem value) { 618void ICollection<XPathItem>.Clear() { 625bool ICollection<XPathItem>.Contains(XPathItem value) { 632void ICollection<XPathItem>.CopyTo(XPathItem[] array, int index) { 640bool ICollection<XPathItem>.Remove(XPathItem value) { 651XPathItem IList<XPathItem>.this[int index] { 664int IList<XPathItem>.IndexOf(XPathItem value) { 671void IList<XPathItem>.Insert(int index, XPathItem value) { 678void IList<XPathItem>.RemoveAt(int index) {
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (3)
53public abstract void WriteItem(XPathItem item); 104public override void WriteItem(XPathItem item) { 155public override void WriteItem(XPathItem item) {
System\Xml\Xsl\Runtime\XslNumber.cs (2)
161public string FormatSequence(IList<XPathItem> val) { 225private void FormatItem(StringBuilder sb, XPathItem item, char startChar, int length) {
System\Xml\Xsl\Runtime\XsltConvert.cs (13)
56internal static readonly Type XPathItemType = typeof(XPathItem); 66public static bool ToBoolean(XPathItem item) { 88public static bool ToBoolean(IList<XPathItem> listItems) { 106public static double ToDouble(XPathItem item) { 126public static double ToDouble(IList<XPathItem> listItems) { 140public static XPathNavigator ToNode(XPathItem item) { 159public static XPathNavigator ToNode(IList<XPathItem> listItems) { 173public static IList<XPathNavigator> ToNodeSet(XPathItem item) { 177public static IList<XPathNavigator> ToNodeSet(IList<XPathItem> listItems) { 195public static string ToString(XPathItem item) { 205public static string ToString(IList<XPathItem> listItems) { 329public static IList<XPathNavigator> EnsureNodeSet(IList<XPathItem> listItems) { 333XPathItem item = listItems[0];
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
186public static XPathItem SystemProperty(XmlQualifiedName name) { 232public static string EXslObjectType(IList<XPathItem> value) { 238XPathItem item = value[0]; 264public static double MSNumber(IList<XPathItem> value) { 269XPathItem item = value[0];
System\Xml\Xsl\Runtime\XsltLibrary.cs (22)
26public static readonly MethodInfo EnsureNodeSet = GetMethod(typeof(XsltConvert), "EnsureNodeSet" , typeof(IList<XPathItem>)); 205public string NumberFormat(IList<XPathItem> value, string formatString, 258private static TypeCode GetTypeCode(XPathItem item) { 289private static bool CompareValues(ComparisonOperator op, XPathItem left, XPathItem right, TypeCode compType) { 303private static bool CompareNodeSetAndValue(ComparisonOperator op, IList<XPathNavigator> nodeset, XPathItem val, TypeCode compType) { 332public bool EqualityOperator(double opCode, IList<XPathItem> left, IList<XPathItem> right) { 344XPathItem rightItem = right[0]; 349XPathItem leftItem = left[0]; 354XPathItem leftItem = left[0]; 355XPathItem rightItem = right[0]; 371public bool RelationalOperator(double opCode, IList<XPathItem> left, IList<XPathItem> right) { 383XPathItem rightItem = right[0]; 388XPathItem leftItem = left[0]; 394XPathItem leftItem = left[0]; 395XPathItem rightItem = right[0]; 425internal static void CheckXsltValue(XPathItem item) { 430internal static void CheckXsltValue(IList<XPathItem> val) { 452private static bool IsNodeSetOrRtf(IList<XPathItem> val) { 460private static IList<XPathNavigator> ToNodeSetOrRtf(IList<XPathItem> val) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
549XPathItem propValue = XsltFunctions.SystemProperty(qname);
System.Xml (8)
System\Xml\Schema\XmlAtomicValue.cs (1)
296if (type == typeof(XPathItem) || type == typeof(XmlAtomicValue))
System\Xml\Schema\XmlValueConverter.cs (7)
351protected static readonly Type XPathItemType = typeof(XPathItem); 2020if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver)); 2039if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver)); 2731if (IsDerivedFrom(sourceType, XPathNavigatorType)) return ((XPathItem) value); 3020if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver)); 3039if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver)); 3185if (itemTypeDst == XPathItemType) return ToArray<XPathItem>(value, nsResolver);