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