コード例 #1
0
 public void Add(string ns, string name, XPath2ResultType resultType, XPathFunctionDelegate action, bool overwriteExistingEntry = true)
 {
     Add(ns, name, -1, resultType, action, overwriteExistingEntry);
 }
コード例 #2
0
        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));
            }
        }
コード例 #3
0
 public XPathFunctionDef(string name, XPathFunctionDelegate _delegate, XPath2ResultType resultType)
 {
     Name       = name;
     Delegate   = _delegate;
     ResultType = resultType;
 }