362 references to XPathResultType
System.Data.SqlXml (68)
System\Xml\Xsl\XsltOld\VariableAction.cs (2)
163XPathResultType IXsltContextVariable.VariableType { 164get { return XPathResultType.Any; }
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (66)
99private MethodInfo FindBestMethod(MethodInfo[] methods, bool ignoreCase, bool publicOnly, string name, XPathResultType[] argTypes) { 138XPathResultType required = argTypes[par]; 139if(required == XPathResultType.Any) { 142XPathResultType actual = GetXPathType(parameters[par].ParameterType); 145actual != XPathResultType.Any // actual arg is object and we can pass everithing here. 160private IXsltContextFunction GetExtentionMethod(string ns, string name, XPathResultType[] argTypes, out object extension) { 183public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] argTypes) { 454public static XPathResultType GetXPathType(Type type) { 457return XPathResultType.String; 459return XPathResultType.Boolean; 465return XPathResultType.Navigator; 468return XPathResultType.NodeSet; 471return XPathResultType.Any; 473return XPathResultType.Error; 475return XPathResultType.Number; 513private XPathResultType returnType; 514private XPathResultType[] argTypes; 517public XsltFunctionImpl(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes) { 520protected void Init(int minArgs, int maxArgs, XPathResultType returnType, XPathResultType[] argTypes) { 529public XPathResultType ReturnType { get { return this.returnType; } } 530public XPathResultType[] ArgTypes { get { return this.argTypes; } } 595public static object ConvertToXPathType(object val, XPathResultType xt, TypeCode typeCode) { 597case XPathResultType.String : 605case XPathResultType.Number : return ToNumeric(val, typeCode); 606case XPathResultType.Boolean : return ToBoolean(val); 607case XPathResultType.NodeSet : return ToIterator(val); 609case XPathResultType.Any : 610case XPathResultType.Error : 620public FuncCurrent() : base(0, 0, XPathResultType.NodeSet, new XPathResultType[] {}) {} 627public FuncUnEntityUri() : base(1, 1, XPathResultType.String , new XPathResultType[] { XPathResultType.String }) {} 634public FuncGenerateId() : base(0, 1, XPathResultType.String , new XPathResultType[] { XPathResultType.NodeSet }) {} 651public FuncSystemProp() : base(1, 1, XPathResultType.String , new XPathResultType[] { XPathResultType.String }) {} 659public FuncElementAvailable() : base(1, 1, XPathResultType.Boolean, new XPathResultType[] { XPathResultType.String }) {} 667public FuncFunctionAvailable() : base(1, 1, XPathResultType.Boolean, new XPathResultType[] { XPathResultType.String }) {} 674public FuncDocument() : base(1, 2, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.Any , XPathResultType.NodeSet}) {} 706public FuncKey() : base(2, 2, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.String , XPathResultType.Any }) {} 770public FuncFormatNumber() : base(2, 3, XPathResultType.String , new XPathResultType[] { XPathResultType.Number , XPathResultType.String, XPathResultType.String }) {} 778public FuncNodeSet() : base(1, 1, XPathResultType.NodeSet, new XPathResultType[] { XPathResultType.Navigator }) {} 796XPathResultType returnType = GetXPathType(method.ReturnType); 802XPathResultType[] argTypes = new XPathResultType[parameters.Length];
System.ServiceModel (120)
System\ServiceModel\Dispatcher\MatchSingleFxEngineOpcode.cs (10)
71if (XPathResultType.NodeSet == xpath.ReturnType) 113case XPathResultType.Any: 117case XPathResultType.Boolean: 121case XPathResultType.NodeSet: 126case XPathResultType.Number: 130case XPathResultType.String: 170case XPathResultType.Boolean: 174case XPathResultType.NodeSet: 178case XPathResultType.Number: 182case XPathResultType.String:
System\ServiceModel\Dispatcher\QueryFunctions.cs (17)
69if (function.ArgTypes[i] == XPathResultType.NodeSet) 79case XPathResultType.String: 80case XPathResultType.Number: 81case XPathResultType.Boolean: 82case XPathResultType.NodeSet: 114case XPathResultType.String: 118case XPathResultType.Number: 122case XPathResultType.Boolean: 126case XPathResultType.NodeSet: 153case XPathResultType.String: 157case XPathResultType.Number: 161case XPathResultType.Boolean: 165case XPathResultType.NodeSet: 190case XPathResultType.String: 194case XPathResultType.Number: 198case XPathResultType.Boolean: 202case XPathResultType.NodeSet:
System\ServiceModel\Dispatcher\QueryMatcher.cs (1)
365if (XPathResultType.Error == xpathExpr.ReturnType)
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (1)
574if (fop.ReturnType == XPathResultType.NodeSet && fop.ArgCount == 0)
System\ServiceModel\Dispatcher\XPathCompiler.cs (1)
324return func.ReturnType == XPathResultType.NodeSet && func.Maxargs == 0;
System\ServiceModel\Dispatcher\XPathExpr.cs (10)
302internal static XPathResultType ConvertTypeToXslt(ValueDataType type) 307return XPathResultType.Boolean; 310return XPathResultType.Number; 313return XPathResultType.NodeSet; 316return XPathResultType.String; 323internal static ValueDataType ConvertTypeFromXslt(XPathResultType type) 327case XPathResultType.Boolean: 330case XPathResultType.Number: 333case XPathResultType.NodeSet: 336case XPathResultType.String:
System\ServiceModel\Dispatcher\XPathMessageContext.cs (55)
160public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] argTypes) 207XPathResultType[] argTypes; 210XPathResultType retType; 218protected XPathMessageFunction(XPathResultType[] argTypes, int max, int min, XPathResultType retType) 226public XPathResultType[] ArgTypes 250public XPathResultType ReturnType 436internal XPathResultType ReturnType 609: base(new XPathResultType[0], 0, 0, XPathResultType.String) 682: base(new XPathResultType[0], 0, 0, XPathResultType.String) 745: base(new XPathResultType[0], 0, 0, XPathResultType.String) 810: base(new XPathResultType[0], 0, 0, XPathResultType.NodeSet) 856: base(new XPathResultType[0], 0, 0, XPathResultType.NodeSet) 902: base(new XPathResultType[0], 0, 0, XPathResultType.String) 970: base(new XPathResultType[] { XPathResultType.NodeSet }, 1, 1, XPathResultType.String) 1032: base(new XPathResultType[] { XPathResultType.NodeSet }, 1, 1, XPathResultType.Boolean) 1097: base(new XPathResultType[] { XPathResultType.NodeSet }, 1, 1, XPathResultType.Boolean) 1171: base(new XPathResultType[] { XPathResultType.NodeSet }, 1, 1, XPathResultType.Boolean) 1238: base(new XPathResultType[] { XPathResultType.String }, 1, 1, XPathResultType.NodeSet) 1371: base(new XPathResultType[] { }, 0, 0, XPathResultType.NodeSet) 1422: base(new XPathResultType[] { }, 0, 0, XPathResultType.NodeSet) 1470: base(new XPathResultType[] { }, 0, 0, XPathResultType.NodeSet) 1517: base(new XPathResultType[] { }, 0, 0, XPathResultType.NodeSet) 1562: base(new XPathResultType[1] { XPathResultType.String }, 1, 1, XPathResultType.Number) 1597static XPathResultType[] argTypes = new XPathResultType[1] { XPathResultType.String }; 1600: base(argTypes, 1, 1, XPathResultType.String) 1654: base(new XPathResultType[0], 0, 0, XPathResultType.Number) 1677: base(new XPathResultType[1] { XPathResultType.String }, 1, 1, XPathResultType.Number)
System\ServiceModel\Dispatcher\XPathParser.cs (2)
429XPathResultType[] argTypes = new XPathResultType[args.Count];
System\ServiceModel\Dispatcher\XPathResult.cs (23)
15XPathResultType resultType; 23this.resultType = XPathResultType.NodeSet; 29this.resultType = XPathResultType.String; 35this.resultType = XPathResultType.Boolean; 41this.resultType = XPathResultType.Number; 48public XPathResultType ResultType 68case XPathResultType.Boolean: 71case XPathResultType.NodeSet: 74case XPathResultType.Number: 77case XPathResultType.String: 87if (this.resultType != XPathResultType.NodeSet) 99case XPathResultType.Boolean: 102case XPathResultType.NodeSet: 105case XPathResultType.Number: 108case XPathResultType.String: 120case XPathResultType.Boolean: 123case XPathResultType.NodeSet: 126case XPathResultType.Number: 129case XPathResultType.String: 144case XPathResultType.Boolean: 147case XPathResultType.NodeSet: 150case XPathResultType.Number: 153case XPathResultType.String:
System.Xml (174)
System\Xml\XPath\Internal\AstNode.cs (1)
26public abstract XPathResultType ReturnType { get; }
System\Xml\XPath\Internal\Axis.cs (2)
60public override XPathResultType ReturnType { get {return XPathResultType.NodeSet;} }
System\Xml\XPath\Internal\BaseAxisQuery.cs (2)
119public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\BooleanExpr.cs (4)
24if (opnd1.StaticType != XPathResultType.Boolean) { 27if (opnd2.StaticType != XPathResultType.Boolean) { 54public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\BooleanFunctions.cs (2)
64public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
65public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
88public override XPathResultType ReturnType { get { return query.StaticType; } } 115public override IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes) {
System\Xml\XPath\Internal\ContextQuery.cs (2)
49public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\EmptyQuery.cs (2)
24public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\ExtensionQuery.cs (2)
113public override XPathResultType StaticType { get { return XPathResultType.Any; } }
System\Xml\XPath\Internal\Filter.cs (2)
25public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\FilterQuery.cs (6)
39if (cond.StaticType != XPathResultType.Number && cond.StaticType != XPathResultType.Any && noPosition) { 79case XPathResultType.Number: 117case XPathResultType.NodeSet: 120case XPathResultType.Boolean: 125case XPathResultType.String:
System\Xml\XPath\Internal\Function.cs (30)
77public override XPathResultType ReturnType { 88internal static XPathResultType[] ReturnTypes = { 89/* FunctionType.FuncLast */ XPathResultType.Number , 90/* FunctionType.FuncPosition */ XPathResultType.Number , 91/* FunctionType.FuncCount */ XPathResultType.Number , 92/* FunctionType.FuncID */ XPathResultType.NodeSet, 93/* FunctionType.FuncLocalName */ XPathResultType.String , 94/* FunctionType.FuncNameSpaceUri */ XPathResultType.String , 95/* FunctionType.FuncName */ XPathResultType.String , 96/* FunctionType.FuncString */ XPathResultType.String , 97/* FunctionType.FuncBoolean */ XPathResultType.Boolean, 98/* FunctionType.FuncNumber */ XPathResultType.Number , 99/* FunctionType.FuncTrue */ XPathResultType.Boolean, 100/* FunctionType.FuncFalse */ XPathResultType.Boolean, 101/* FunctionType.FuncNot */ XPathResultType.Boolean, 102/* FunctionType.FuncConcat */ XPathResultType.String , 103/* FunctionType.FuncStartsWith */ XPathResultType.Boolean, 104/* FunctionType.FuncContains */ XPathResultType.Boolean, 105/* FunctionType.FuncSubstringBefore */ XPathResultType.String , 106/* FunctionType.FuncSubstringAfter */ XPathResultType.String , 107/* FunctionType.FuncSubstring */ XPathResultType.String , 108/* FunctionType.FuncStringLength */ XPathResultType.Number , 109/* FunctionType.FuncNormalize */ XPathResultType.String , 110/* FunctionType.FuncTranslate */ XPathResultType.String , 111/* FunctionType.FuncLang */ XPathResultType.Boolean, 112/* FunctionType.FuncSum */ XPathResultType.Number , 113/* FunctionType.FuncFloor */ XPathResultType.Number , 114/* FunctionType.FuncCeiling */ XPathResultType.Number , 115/* FunctionType.FuncRound */ XPathResultType.Number , 116/* FunctionType.FuncUserDefined */ XPathResultType.Any
System\Xml\XPath\Internal\FunctionQuery.cs (7)
44XPathResultType[] argTypes = new XPathResultType[args.Count]; 90public override XPathResultType StaticType { get { 91XPathResultType result = function != null ? function.ReturnType : XPathResultType.Any; 92 if (result == XPathResultType.Error) { 94 result = XPathResultType.Any;
System\Xml\XPath\Internal\Group.cs (2)
21public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\GroupQuery.cs (1)
33public override XPathResultType StaticType { get { return qyInput.StaticType; } }
System\Xml\XPath\Internal\IdQuery.cs (4)
26case XPathResultType.NodeSet: 32case XPathResultType.String: 35case XPathResultType.Number: 38case XPathResultType.Boolean:
System\Xml\XPath\Internal\LogicalExpr.cs (2)
372public override XPathResultType StaticType { get { return XPathResultType.Boolean; } }
System\Xml\XPath\Internal\NodeFunctions.cs (1)
88public override XPathResultType StaticType { get { return Function.ReturnTypes[(int)funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (6)
61case XPathResultType.NodeSet : 67case XPathResultType.String : 69case XPathResultType.Boolean : 71case XPathResultType.Number: 102public override XPathResultType StaticType { get { return XPathResultType.Number; } }
System\Xml\XPath\Internal\NumericExpr.cs (4)
28if (opnd1.StaticType != XPathResultType.Number) { 31if (opnd2.StaticType != XPathResultType.Number) { 67public override XPathResultType StaticType { get { return XPathResultType.Number; } }
System\Xml\XPath\Internal\Operand.cs (5)
16private XPathResultType type; 20this.type = XPathResultType.String; 25this.type = XPathResultType.Number; 30this.type = XPathResultType.Boolean; 35public override XPathResultType ReturnType { get { return type; } }
System\Xml\XPath\Internal\OperandQuery.cs (1)
26public override XPathResultType StaticType { get { return GetXPathType(val); } }
System\Xml\XPath\Internal\Operator.cs (4)
66public override XPathResultType ReturnType { 69return XPathResultType.Boolean; 72return XPathResultType.Number; 74return XPathResultType.NodeSet;
System\Xml\XPath\Internal\Query.cs (8)
72public abstract XPathResultType StaticType { get; } 214public const XPathResultType XPathResultType_Navigator = (XPathResultType) 4; 220protected XPathResultType GetXPathType(object value) { 221if (value is XPathNodeIterator) return XPathResultType.NodeSet; 222if (value is string ) return XPathResultType.String; 223if (value is double ) return XPathResultType.Number; 224if (value is bool ) return XPathResultType.Boolean;
System\Xml\XPath\Internal\QueryBuilder.cs (4)
179q.StaticType == XPathResultType.Any || 180q.StaticType == XPathResultType.Number 220if (qyFilter != null && (propsCond & Props.HasPosition) == 0 && qyFilter.Condition.StaticType != XPathResultType.Any) { 222if (prevCond.StaticType == XPathResultType.Number) {
System\Xml\XPath\Internal\Root.cs (2)
17public override XPathResultType ReturnType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\SortQuery.cs (6)
41qyInput.StaticType != XPathResultType.NodeSet && 42qyInput.StaticType != XPathResultType.Any 98public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } } 165if (evalQuery.StaticType == XPathResultType.NodeSet || evalQuery.StaticType == XPathResultType.Any) {
System\Xml\XPath\Internal\StringFunctions.cs (8)
72case XPathResultType.NodeSet: 75case XPathResultType.String: 77case XPathResultType.Boolean : 82Debug.Assert(GetXPathType(argVal) == XPathResultType.Number); 89public override XPathResultType StaticType { get { 91return XPathResultType.Number; 97return XPathResultType.Boolean; 99return XPathResultType.String;
System\Xml\XPath\Internal\UnionExpr.cs (2)
131public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
System\Xml\XPath\Internal\Variable.cs (2)
23public override XPathResultType ReturnType { get {return XPathResultType.Any; } }
System\Xml\XPath\Internal\VariableQuery.cs (5)
47public override XPathResultType StaticType { get { 51XPathResultType result = variable != null ? variable.VariableType : XPathResultType.Any; 52 if (result == XPathResultType.Error) { 54 result = XPathResultType.Any;
System\Xml\XPath\Internal\XPathParser.cs (35)
472if (arg.ReturnType != XPathResultType.String) { 488pi.ArgTypes[i] != XPathResultType.Any && 492case XPathResultType.NodeSet : 493if (!(arg is Variable) && !(arg is Function && arg.ReturnType == XPathResultType.Any) ) { 497case XPathResultType.String : 500case XPathResultType.Number : 503case XPathResultType.Boolean : 673void CheckNodeSet(XPathResultType t) { 674if (t != XPathResultType.NodeSet && t != XPathResultType.Any) { 680static readonly XPathResultType[] temparray1 = {}; 681static readonly XPathResultType[] temparray2 = {XPathResultType.NodeSet}; 682static readonly XPathResultType[] temparray3 = {XPathResultType.Any}; 683static readonly XPathResultType[] temparray4 = {XPathResultType.String}; 684static readonly XPathResultType[] temparray5 = {XPathResultType.String, XPathResultType.String}; 685static readonly XPathResultType[] temparray6 = {XPathResultType.String, XPathResultType.Number, XPathResultType.Number}; 686static readonly XPathResultType[] temparray7 = {XPathResultType.String, XPathResultType.String, XPathResultType.String}; 687static readonly XPathResultType[] temparray8 = {XPathResultType.Boolean}; 688static readonly XPathResultType[] temparray9 = {XPathResultType.Number}; 694private XPathResultType[] argTypes; 699public XPathResultType[] ArgTypes { get { return this.argTypes; } } 701internal ParamInfo(Function.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes) {
System\Xml\XPath\XPathExpr.cs (2)
36Navigator = XPathResultType.String, 56public abstract XPathResultType ReturnType { get; }
System\Xml\Xslt\XsltContext.cs (4)
15XPathResultType ReturnType { get; } 16XPathResultType[] ArgTypes { get; } 23XPathResultType VariableType { get; } 34public abstract IXsltContextFunction ResolveFunction(string prefix, string name, XPathResultType[] ArgTypes);