39 references to XsltConvert
System.Private.Xml (39)
System\Xml\Xsl\IlGen\GenerateHelper.cs (20)
401
public static readonly MethodInfo DblToDec = typeof(
XsltConvert
).GetMethod("ToDecimal", new[] { typeof(double) })!;
402
public static readonly MethodInfo DblToInt = typeof(
XsltConvert
).GetMethod("ToInt", new[] { typeof(double) })!;
403
public static readonly MethodInfo DblToLng = typeof(
XsltConvert
).GetMethod("ToLong", new[] { typeof(double) })!;
404
public static readonly MethodInfo DblToStr = typeof(
XsltConvert
).GetMethod("ToString", new[] { typeof(double) })!;
405
public static readonly MethodInfo DecToDbl = typeof(
XsltConvert
).GetMethod("ToDouble", new[] { typeof(decimal) })!;
406
public static readonly MethodInfo DTToStr = typeof(
XsltConvert
).GetMethod("ToString", new[] { typeof(DateTime) })!;
407
public static readonly MethodInfo IntToDbl = typeof(
XsltConvert
).GetMethod("ToDouble", new[] { typeof(int) })!;
408
public static readonly MethodInfo LngToDbl = typeof(
XsltConvert
).GetMethod("ToDouble", new[] { typeof(long) })!;
409
public static readonly MethodInfo StrToDbl = typeof(
XsltConvert
).GetMethod("ToDouble", new[] { typeof(string) })!;
410
public static readonly MethodInfo StrToDT = typeof(
XsltConvert
).GetMethod("ToDateTime", new[] { typeof(string) })!;
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>) })!;
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5401
value =
XsltConvert
.ConvertToType(value, typTarget);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
343
return
XsltConvert
.InferXsltType(clrType);
System\Xml\Xsl\Runtime\XmlQueryContext.cs (5)
288
case XmlTypeCode.Boolean: objActualArgs[i] =
XsltConvert
.ToBoolean(args[i]); break;
289
case XmlTypeCode.Double: objActualArgs[i] =
XsltConvert
.ToDouble(args[i]); break;
290
case XmlTypeCode.String: objActualArgs[i] =
XsltConvert
.ToString(args[i]); break;
293
objActualArgs[i] =
XsltConvert
.ToNode(args[i]);
295
objActualArgs[i] =
XsltConvert
.ToNodeSet(args[i]);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
490
value =
XsltConvert
.ToDateTime((string)value);
583
value =
XsltConvert
.ToString((DateTime)value);
633
switch (
XsltConvert
.InferXsltType(sourceType).TypeCode)
645
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String),
XsltConvert
.ToString((DateTime)value)));
System\Xml\Xsl\Runtime\XsltLibrary.cs (8)
23
public static readonly MethodInfo EnsureNodeSet = typeof(
XsltConvert
).GetMethod("EnsureNodeSet", new[] { typeof(IList<XPathItem>) })!;
380
return CompareNumbers(op,
XsltConvert
.ToDouble(left),
XsltConvert
.ToDouble(right));
387
return (
XsltConvert
.ToString(left) ==
XsltConvert
.ToString(right)) == (op == ComparisonOperator.Eq);
392
return (
XsltConvert
.ToBoolean(left) ==
XsltConvert
.ToBoolean(right)) == (op == ComparisonOperator.Eq);
403
return CompareNumbers(op, (nodeset.Count != 0) ? 1 : 0,
XsltConvert
.ToBoolean(val) ? 1 : 0);