public void Add(string ns, string name, XPath2ResultType resultType, XPathFunctionDelegate action, bool overwriteExistingEntry = true) { Add(ns, name, -1, resultType, action, overwriteExistingEntry); }
public void Add(string ns, string name, int arity, XPath2ResultType resultType, XPathFunctionDelegate action, bool overwriteExistingEntry = true) { var key = new FunctionDesc(name, ns, arity); if (_funcTable.ContainsKey(key) && overwriteExistingEntry) { _funcTable[key] = new XPathFunctionDef(name, action, resultType); } else { _funcTable.Add(key, new XPathFunctionDef(name, action, resultType)); } }
public XPathFunctionDef(string name, XPathFunctionDelegate _delegate, XPath2ResultType resultType) { Name = name; Delegate = _delegate; ResultType = resultType; }