246 references to XPathResultType
netstandard (1)
netstandard.cs (1)
2525[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathResultType))]
System.Private.Xml (242)
System\Xml\XPath\Internal\AstNode.cs (1)
24public abstract XPathResultType ReturnType { get; }
System\Xml\XPath\Internal\Axis.cs (2)
57public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\BaseAxisQuery.cs (2)
133public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\BooleanExpr.cs (4)
21if (opnd1.StaticType != XPathResultType.Boolean) 25if (opnd2.StaticType != XPathResultType.Boolean) 57public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\BooleanFunctions.cs (2)
69public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
72public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
107public override XPathResultType ReturnType { get { return _query.StaticType; } } 141public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes)
System\Xml\XPath\Internal\ContextQuery.cs (2)
53public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\EmptyQuery.cs (2)
16public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\ExtensionQuery.cs (2)
125public override XPathResultType StaticType { get { return XPathResultType.Any; } }
System\Xml\XPath\Internal\Filter.cs (2)
20public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\FilterQuery.cs (6)
39if (_cond.StaticType != XPathResultType.Number && _cond.StaticType != XPathResultType.Any && _noPosition) 89case XPathResultType.Number: 136case XPathResultType.NodeSet: 139case XPathResultType.Boolean: 145case XPathResultType.String:
System\Xml\XPath\Internal\Function.cs (30)
73public override XPathResultType ReturnType 86internal static ReadOnlySpan<XPathResultType> ReturnTypes => 88/* FunctionType.FuncLast */ XPathResultType.Number, 89/* FunctionType.FuncPosition */ XPathResultType.Number, 90/* FunctionType.FuncCount */ XPathResultType.Number, 91/* FunctionType.FuncID */ XPathResultType.NodeSet, 92/* FunctionType.FuncLocalName */ XPathResultType.String, 93/* FunctionType.FuncNameSpaceUri */ XPathResultType.String, 94/* FunctionType.FuncName */ XPathResultType.String, 95/* FunctionType.FuncString */ XPathResultType.String, 96/* FunctionType.FuncBoolean */ XPathResultType.Boolean, 97/* FunctionType.FuncNumber */ XPathResultType.Number, 98/* FunctionType.FuncTrue */ XPathResultType.Boolean, 99/* FunctionType.FuncFalse */ XPathResultType.Boolean, 100/* FunctionType.FuncNot */ XPathResultType.Boolean, 101/* FunctionType.FuncConcat */ XPathResultType.String, 102/* FunctionType.FuncStartsWith */ XPathResultType.Boolean, 103/* FunctionType.FuncContains */ XPathResultType.Boolean, 104/* FunctionType.FuncSubstringBefore */ XPathResultType.String, 105/* FunctionType.FuncSubstringAfter */ XPathResultType.String, 106/* FunctionType.FuncSubstring */ XPathResultType.String, 107/* FunctionType.FuncStringLength */ XPathResultType.Number, 108/* FunctionType.FuncNormalize */ XPathResultType.String, 109/* FunctionType.FuncTranslate */ XPathResultType.String, 110/* FunctionType.FuncLang */ XPathResultType.Boolean, 111/* FunctionType.FuncSum */ XPathResultType.Number, 112/* FunctionType.FuncFloor */ XPathResultType.Number, 113/* FunctionType.FuncCeiling */ XPathResultType.Number, 114/* FunctionType.FuncRound */ XPathResultType.Number, 115/* FunctionType.FuncUserDefined */ XPathResultType.Any
System\Xml\XPath\Internal\FunctionQuery.cs (7)
49XPathResultType[] argTypes = new XPathResultType[_args.Count]; 114public override XPathResultType StaticType 118XPathResultType result = _function != null ? _function.ReturnType : XPathResultType.Any; 119if (result == XPathResultType.Error) 122result = XPathResultType.Any;
System\Xml\XPath\Internal\Group.cs (2)
17public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\GroupQuery.cs (1)
29public override XPathResultType StaticType { get { return qyInput.StaticType; } }
System\Xml\XPath\Internal\IdQuery.cs (4)
23case XPathResultType.NodeSet: 30case XPathResultType.String: 33case XPathResultType.Number: 36case XPathResultType.Boolean:
System\Xml\XPath\Internal\LogicalExpr.cs (2)
439public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\NodeFunctions.cs (1)
96public override XPathResultType StaticType { get { return Function.ReturnTypes[(int)_funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (6)
64case XPathResultType.NodeSet: 71case XPathResultType.String: 73case XPathResultType.Boolean: 75case XPathResultType.Number: 115public override XPathResultType StaticType { get { return XPathResultType.Number; } }
System\Xml\XPath\Internal\NumericExpr.cs (4)
25if (opnd1.StaticType != XPathResultType.Number) 29if (opnd2.StaticType != XPathResultType.Number) 71public override XPathResultType StaticType { get { return XPathResultType.Number; } }
System\Xml\XPath\Internal\Operand.cs (4)
10private readonly XPathResultType _type; 15_type = XPathResultType.String; 21_type = XPathResultType.Number; 26public override XPathResultType ReturnType { get { return _type; } }
System\Xml\XPath\Internal\OperandQuery.cs (1)
24public override XPathResultType StaticType { get { return GetXPathType(val); } }
System\Xml\XPath\Internal\Operator.cs (4)
65public override XPathResultType ReturnType 71return XPathResultType.Boolean; 75return XPathResultType.Number; 77return XPathResultType.NodeSet;
System\Xml\XPath\Internal\Query.cs (8)
65public abstract XPathResultType StaticType { get; } 179public const XPathResultType XPathResultType_Navigator = (XPathResultType)4; 185protected static XPathResultType GetXPathType(object value) 187if (value is XPathNodeIterator) return XPathResultType.NodeSet; 188if (value is string) return XPathResultType.String; 189if (value is double) return XPathResultType.Number; 190if (value is bool) return XPathResultType.Boolean;
System\Xml\XPath\Internal\QueryBuilder.cs (4)
210q.StaticType == XPathResultType.Any || 211q.StaticType == XPathResultType.Number 256if (qyFilter != null && (propsCond & Props.HasPosition) == 0 && qyFilter.Condition.StaticType != XPathResultType.Any) 259if (prevCond.StaticType == XPathResultType.Number)
System\Xml\XPath\Internal\Root.cs (2)
13public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\SortQuery.cs (6)
42_qyInput.StaticType != XPathResultType.NodeSet && 43_qyInput.StaticType != XPathResultType.Any 110public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } } 178if (evalQuery.StaticType == XPathResultType.NodeSet || evalQuery.StaticType == XPathResultType.Any)
System\Xml\XPath\Internal\StringFunctions.cs (8)
81case XPathResultType.NodeSet: 84case XPathResultType.String: 86case XPathResultType.Boolean: 91Debug.Assert(GetXPathType(argVal) == XPathResultType.Number); 99public override XPathResultType StaticType 105return XPathResultType.Number; 112return XPathResultType.Boolean; 114return XPathResultType.String;
System\Xml\XPath\Internal\UnionExpr.cs (2)
156public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\Variable.cs (2)
20public override XPathResultType ReturnType { get { return XPathResultType.Any; } }
System\Xml\XPath\Internal\VariableQuery.cs (5)
56public override XPathResultType StaticType 64XPathResultType result = _variable != null ? _variable.VariableType : XPathResultType.Any; 65if (result == XPathResultType.Error) 68result = XPathResultType.Any;
System\Xml\XPath\Internal\XPathParser.cs (36)
537if (arg.ReturnType != XPathResultType.String) 558pi.ArgTypes[i] != XPathResultType.Any && 564case XPathResultType.NodeSet: 565if (!(arg is Variable) && !(arg is Function && arg.ReturnType == XPathResultType.Any)) 570case XPathResultType.String: 573case XPathResultType.Number: 576case XPathResultType.Boolean: 771private void CheckNodeSet(XPathResultType t) 773if (t != XPathResultType.NodeSet && t != XPathResultType.Any) 780private static readonly XPathResultType[] s_temparray1 = Array.Empty<XPathResultType>(); 781private static readonly XPathResultType[] s_temparray2 = { XPathResultType.NodeSet }; 782private static readonly XPathResultType[] s_temparray3 = { XPathResultType.Any }; 783private static readonly XPathResultType[] s_temparray4 = { XPathResultType.String }; 784private static readonly XPathResultType[] s_temparray5 = { XPathResultType.String, XPathResultType.String }; 785private static readonly XPathResultType[] s_temparray6 = { XPathResultType.String, XPathResultType.Number, XPathResultType.Number }; 786private static readonly XPathResultType[] s_temparray7 = { XPathResultType.String, XPathResultType.String, XPathResultType.String }; 787private static readonly XPathResultType[] s_temparray8 = { XPathResultType.Boolean }; 788private static readonly XPathResultType[] s_temparray9 = { XPathResultType.Number }; 795private readonly XPathResultType[] _argTypes; 800public XPathResultType[] ArgTypes { get { return _argTypes; } } 802internal ParamInfo(Function.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes)
System\Xml\XPath\XPathExpr.cs (2)
34Navigator = XPathResultType.String, 55public abstract XPathResultType ReturnType { get; }
System\Xml\Xsl\XsltOld\VariableAction.cs (2)
187XPathResultType IXsltContextVariable.VariableType 189get { return XPathResultType.Any; }
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (66)
111private static MethodInfo? FindBestMethod(MethodInfo[] methods, bool ignoreCase, bool publicOnly, string name, XPathResultType[]? argTypes) 161XPathResultType required = argTypes[par]; 162if (required == XPathResultType.Any) 166XPathResultType actual = GetXPathType(parameters[par].ParameterType); 169actual != XPathResultType.Any // actual arg is object and we can pass everithing here. 187private FuncExtension? GetExtensionMethod(string ns, string name, XPathResultType[]? argTypes, out object? extension) 215public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] argTypes) 544public static XPathResultType GetXPathType(Type type) 549return XPathResultType.String; 551return XPathResultType.Boolean; 555return XPathResultType.Navigator; 559return XPathResultType.NodeSet; 562return XPathResultType.Any; 564return XPathResultType.Error; 567return XPathResultType.Number; 608private XPathResultType _returnType; 609private XPathResultType[] _argTypes = null!; // Used by derived classes which initialize it 613public XsltFunctionImpl(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes) 619protected void Init(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes) 629public XPathResultType ReturnType { get { return _returnType; } } 630public XPathResultType[] ArgTypes { get { return _argTypes; } } 713public static object ConvertToXPathType(object val, XPathResultType xt, Type type) 717case XPathResultType.String: 728case XPathResultType.Number: return ToNumeric(val, type); 729case XPathResultType.Boolean: return ToBoolean(val); 730case XPathResultType.NodeSet: return ToIterator(val); 732case XPathResultType.Any: 733case XPathResultType.Error: 744public FuncCurrent() : base(0, 0, XPathResultType.NodeSet, Array.Empty<XPathResultType>()) { } 753public FuncUnEntityUri() : base(1, 1, XPathResultType.String, new XPathResultType[] { XPathResultType.String }) { } 762public FuncGenerateId() : base(0, 1, XPathResultType.String, new XPathResultType[] { XPathResultType.NodeSet }) { } 787public FuncSystemProp() : base(1, 1, XPathResultType.String, new XPathResultType[] { XPathResultType.String }) { } 797public FuncElementAvailable() : base(1, 1, XPathResultType.Boolean, new XPathResultType[] { XPathResultType.String }) { } 807public FuncFunctionAvailable() : base(1, 1, XPathResultType.Boolean, new XPathResultType[] { XPathResultType.String }) { } 816public FuncDocument() : base(1, 2, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.Any, XPathResultType.NodeSet }) { } 855public FuncKey() : base(2, 2, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.String, XPathResultType.Any }) { } 937public FuncFormatNumber() : base(2, 3, XPathResultType.String, new XPathResultType[] { XPathResultType.Number, XPathResultType.String, XPathResultType.String }) { } 947public FuncNodeSet() : base(1, 1, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.Navigator }) { } 966XPathResultType returnType = GetXPathType(method.ReturnType); 972XPathResultType[] argTypes = new XPathResultType[parameters.Length];
System\Xml\Xslt\XsltContext.cs (4)
13XPathResultType ReturnType { get; } 14XPathResultType[] ArgTypes { get; } 22XPathResultType VariableType { get; } 34public abstract IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes);
System.Xml (1)
System.Xml.cs (1)
187[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathResultType))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
178[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathResultType))]
System.Xml.XPath (1)
artifacts\obj\System.Xml.XPath\Debug\net10.0\System.Xml.XPath.Forwards.cs (1)
16[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XPathResultType))]