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