/// <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); }
public static ParentedMap <TKey, TValue> Create <TKey, TValue>(ParentedMap <TKey, TValue> parent = null) { return(ParentedMap <TKey, TValue> .Create(parent)); }