2 types derived from XPathItem
System.Private.Xml (2)
System\Xml\Schema\XmlAtomicValue.cs (1)
17public sealed class XmlAtomicValue : XPathItem, ICloneable
System\Xml\XPath\XPathNavigator.cs (1)
22public abstract class XPathNavigator : XPathItem, ICloneable, IXPathNavigable, IXmlNamespaceResolver
166 references to XPathItem
netstandard (1)
netstandard.cs (1)
2520[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathItem))]
System.Private.Xml (162)
System\Xml\Schema\XmlAtomicValue.cs (1)
358if (type == typeof(XPathItem) || type == typeof(XmlAtomicValue))
System\Xml\Schema\XmlValueConverter.cs (7)
302protected static readonly Type XPathItemArrayType = typeof(XPathItem[]); 318protected static readonly Type XPathItemType = typeof(XPathItem); 1907if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver)); 1929if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver)); 2821if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver)); 2842if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver)); 3002if (itemTypeDst == XPathItemType) return ToArray<XPathItem>(value, nsResolver);
System\Xml\Xsl\IlGen\GenerateHelper.cs (27)
104else if (storageType == typeof(XPathItem)) 131ValueAs = typeof(XPathItem).GetMethod("get_Value"); 133ValueAs = typeof(XPathItem).GetMethod("get_ValueAsInt"); 135ValueAs = typeof(XPathItem).GetMethod("get_ValueAsLong"); 137ValueAs = typeof(XPathItem).GetMethod("get_ValueAsDateTime"); 139ValueAs = typeof(XPathItem).GetMethod("get_ValueAsDouble"); 141ValueAs = typeof(XPathItem).GetMethod("get_ValueAsBoolean"); 146else if (storageType != typeof(XPathItem) && storageType != typeof(XPathNavigator)) 288public static readonly MethodInfo ItemMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(XmlTypeCode) })!; 289public static readonly MethodInfo ItemMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(int) })!; 294public static readonly MethodInfo SeqMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(XmlTypeCode) })!; 295public static readonly MethodInfo SeqMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(int) })!; 319public static readonly MethodInfo ItemIsNode = typeof(XPathItem).GetMethod("get_IsNode")!; 320public static readonly MethodInfo Value = typeof(XPathItem).GetMethod("get_Value")!; 321public static readonly MethodInfo ValueAsAny = typeof(XPathItem).GetMethod("ValueAs", new[] { typeof(Type), typeof(IXmlNamespaceResolver) })!; 412public static readonly MethodInfo ItemToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(XPathItem) })!; 413public static readonly MethodInfo ItemToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(XPathItem) })!; 414public static readonly MethodInfo ItemToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(XPathItem) })!; 415public static readonly MethodInfo ItemToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(XPathItem) })!; 416public static readonly MethodInfo ItemToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(XPathItem) })!; 418public static readonly MethodInfo ItemsToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(IList<XPathItem>) })!; 419public static readonly MethodInfo ItemsToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(IList<XPathItem>) })!; 420public static readonly MethodInfo ItemsToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(IList<XPathItem>) })!; 421public static readonly MethodInfo ItemsToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(IList<XPathItem>) })!; 422public static readonly MethodInfo ItemsToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(IList<XPathItem>) })!; 453{ typeof(XPathItem), new XmlILStorageMethods(typeof(XPathItem)) },
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (4)
681Debug.Assert(_storage.ItemStorageType == typeof(XPathItem) || storageTypeDest == typeof(XPathItem), 708if (_storage.ItemStorageType == typeof(XPathItem)) 725Debug.Assert(storageTypeDest == typeof(XPathItem), "Must be converting from XPathNavigator to XPathItem");
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (8)
34return typeof(XPathItem); 42return typeof(IList<XPathItem>); 49typeof(XPathItem), // XmlTypeCode.None 50typeof(XPathItem), // XmlTypeCode.Item 59typeof(XPathItem), // XmlTypeCode.AnyAtomicType 107typeof(IList<XPathItem>), // XmlTypeCode.None 108typeof(IList<XPathItem>), // XmlTypeCode.Item 117typeof(IList<XPathItem>), // XmlTypeCode.AnyAtomicType
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (21)
353_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), true); 374_iterCurr.EnsureItemStorageType(nd.XmlType!, typeof(XPathItem)); 380_iterCurr.EnsureItemStorageType(nd.XmlType!, typeof(XPathItem)); 457_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), false); 1152_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), false); 3187Debug.Assert(_iterCurr.Storage.ItemStorageType == typeof(XPathItem), "If !IsNode, then storage type should be Item"); 3211NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.IsSingleton); 3221NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.IsSingleton); 3560LocalBuilder locArgs = _helper.DeclareLocal("$$$args", typeof(IList<XPathItem>[])); 3571_helper.Emit(OpCodes.Newarr, typeof(IList<XPathItem>)); 3583_helper.Emit(OpCodes.Ldelema, typeof(IList<XPathItem>)); 3585NestedVisitEnsureCache(ndArg, typeof(XPathItem)); 3588_helper.Emit(OpCodes.Stobj, typeof(IList<XPathItem>)); 3596_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathItem), true); 3665else if (clrTypeFormalArg == XmlILMethods.StorageMethods[typeof(XPathItem)].IListType) 3668NestedVisitEnsureStack(ndActualArg, typeof(XPathItem), true); 3675else if (ndActualArg.XmlType.IsSingleton && clrTypeFormalArg == typeof(XPathItem)) 3678NestedVisitEnsureStack(ndActualArg, typeof(XPathItem), false); 3713_helper.Emit(OpCodes.Ldsfld, XmlILMethods.StorageMethods[typeof(XPathItem)].SeqEmpty); 3809NestedVisitEnsureStack(ndConv.Source, typeof(XPathItem), !typSrc.IsSingleton); 4696_iterCurr.Storage.ItemStorageType == typeof(XPathItem) ||
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (4)
84public static IList<XPathItem> NavigatorsToItems(IList<XPathNavigator> listNavigators) 87IList<XPathItem>? listItems = listNavigators as IList<XPathItem>; 95public static IList<XPathNavigator> ItemsToNavigators(IList<XPathItem> listItems)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (3)
255public IList<XPathItem> InvokeXsltLateBoundFunction(string name, string namespaceUri, IList<XPathItem>[] args) 318return (IList<XPathItem>)_runtime.ChangeTypeXsltResult(XmlQueryTypeFactory.ItemS, objRet);
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
869public void WriteItem(XPathItem item)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (16)
175Debug.Assert(_globalValues![idx] is IList<XPathItem>, "Only debugger should call this method, and all global values should have type item* in debugging scenarios."); 192Debug.Assert(_globalValues![idx] is IList<XPathItem>, "Only debugger should call this method, and all global values should have type item* in debugging scenarios."); 195_globalValues[idx] = (IList<XPathItem>)XmlAnyListConverter.ItemList.ChangeType(value, typeof(XPathItem[]), null); 208XPathItem? item = seq[0] as XPathItem; 529IList<XPathItem> seq = (IList<XPathItem>)value; 532XPathItem item = seq[0]; 701public bool MatchesXmlType(IList<XPathItem> seq, int indexType) 728public bool MatchesXmlType(XPathItem item, int indexType) 736public bool MatchesXmlType(IList<XPathItem> seq, XmlTypeCode code) 747public bool MatchesXmlType(XPathItem item, XmlTypeCode code) 785private static XmlQueryType CreateXmlType(XPathItem item) 987public IList<XPathItem> EndSequenceConstruction(out XmlQueryOutput output) 989IList<XPathItem> seq = ((XmlCachedSequenceWriter)_output.SequenceWriter!).ResultSequence;
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (25)
420public sealed class XmlQueryItemSequence : XmlQuerySequence<XPathItem> 442public static XmlQueryItemSequence CreateOrReuse(XmlQueryItemSequence seq, XPathItem item) 471public XmlQueryItemSequence(XPathItem item) : base(1) 479public void AddClone(XPathItem item) 492public sealed class XmlQueryNodeSequence : XmlQuerySequence<XPathNavigator>, IList<XPathItem> 658IEnumerator<XPathItem> IEnumerable<XPathItem>.GetEnumerator() 660return new IListEnumerator<XPathItem>(this); 670bool ICollection<XPathItem>.IsReadOnly 678void ICollection<XPathItem>.Add(XPathItem value) 686void ICollection<XPathItem>.Clear() 694bool ICollection<XPathItem>.Contains(XPathItem value) 702void ICollection<XPathItem>.CopyTo(XPathItem[] array, int index) 711bool ICollection<XPathItem>.Remove(XPathItem value) 723XPathItem IList<XPathItem>.this[int index] 737int IList<XPathItem>.IndexOf(XPathItem value) 745void IList<XPathItem>.Insert(int index, XPathItem value) 753void IList<XPathItem>.RemoveAt(int index)
System\Xml\Xsl\Runtime\XmlSequenceWriter.cs (3)
49public abstract void WriteItem(XPathItem item); 104public override void WriteItem(XPathItem item) 160public override void WriteItem(XPathItem item)
System\Xml\Xsl\Runtime\XslNumber.cs (2)
181public string FormatSequence(IList<XPathItem> val) 260private void FormatItem(StringBuilder sb, XPathItem item, char startChar, int length)
System\Xml\Xsl\Runtime\XsltConvert.cs (12)
28public static bool ToBoolean(XPathItem item) 54public static bool ToBoolean(IList<XPathItem> listItems) 74public static double ToDouble(XPathItem item) 98public static double ToDouble(IList<XPathItem> listItems) 113public static XPathNavigator ToNode(XPathItem item) 134public static XPathNavigator ToNode(IList<XPathItem> listItems) 149public static IList<XPathNavigator> ToNodeSet(XPathItem item) 154public static IList<XPathNavigator> ToNodeSet(IList<XPathItem> listItems) 174public static string ToString(XPathItem item) 185public static string ToString(IList<XPathItem> listItems) 323public static IList<XPathNavigator> EnsureNodeSet(IList<XPathItem> listItems) 329XPathItem item = listItems[0];
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
214public static XPathItem SystemProperty(XmlQualifiedName name) 268public static string EXslObjectType(IList<XPathItem> value) 276XPathItem item = value[0]; 312public static double MSNumber(IList<XPathItem> value) 319XPathItem item = value[0];
System\Xml\Xsl\Runtime\XsltLibrary.cs (22)
23public static readonly MethodInfo EnsureNodeSet = typeof(XsltConvert).GetMethod("EnsureNodeSet", new[] { typeof(IList<XPathItem>) })!; 212public string NumberFormat(IList<XPathItem> value, string formatString, 338private static TypeCode GetTypeCode(XPathItem item) 376private static bool CompareValues(ComparisonOperator op, XPathItem left, XPathItem right, TypeCode compType) 397private static bool CompareNodeSetAndValue(ComparisonOperator op, IList<XPathNavigator> nodeset, XPathItem val, TypeCode compType) 436public bool EqualityOperator(double opCode, IList<XPathItem> left, IList<XPathItem> right) 453XPathItem rightItem = right[0]; 460XPathItem leftItem = left[0]; 467XPathItem leftItem = left[0]; 468XPathItem rightItem = right[0]; 484public bool RelationalOperator(double opCode, IList<XPathItem> left, IList<XPathItem> right) 501XPathItem rightItem = right[0]; 508XPathItem leftItem = left[0]; 516XPathItem leftItem = left[0]; 517XPathItem rightItem = right[0]; 549internal static void CheckXsltValue(XPathItem item) 555internal static void CheckXsltValue(IList<XPathItem> val) 584private static bool IsNodeSetOrRtf(IList<XPathItem> val) 594private static IList<XPathNavigator> ToNodeSetOrRtf(IList<XPathItem> val)
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
660XPathItem propValue = XsltFunctions.SystemProperty(qname);
System.Xml (1)
System.Xml.cs (1)
182[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathItem))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
173[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathItem))]
System.Xml.XPath (1)
artifacts\obj\System.Xml.XPath\Debug\net10.0\System.Xml.XPath.Forwards.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathItem))]