Esempio n. 1
0
        /// <summary>
        /// Initialized a names table.
        /// </summary>
        /// <param name="parent"></param>
        public XPathXNamesTable(XPathXNamesTable parent = null)
        {
            ParentedMap <XName, TriflesXPathExtensionFunction> parentFunctions = null;
            ParentedMap <XName, TriflesXPathExtensionVariable> parentVariables = null;

            if (parent != null)
            {
                parentFunctions = parent.functions;
                parentVariables = parent.variables;
            }

            this.parent    = parent;
            this.functions = ParentedMap.Create(parentFunctions);
            this.variables = ParentedMap.Create(parentVariables);
        }
Esempio n. 2
0
 internal ChildMap(ParentedMap <TKeyx, TValuex> parent)
 {
     this.parent = Checker.NotNull(parent, "parent");
 }
Esempio n. 3
0
 public static ParentedMap <TKey, TValue> Create <TKey, TValue>(ParentedMap <TKey, TValue> parent = null)
 {
     return(ParentedMap <TKey, TValue> .Create(parent));
 }