private Dictionary <string, string> GetTemplates(NodeFamily node, List <string> templates) { return(templates.Select((t, i) => Tuple.Create(node.Ranges[i].Name, t)) .ToDictionary(x => x.Item1, x => x.Item2)); }
public EdgeEnd(NodeFamily node, List <string> templates) { NamesWithTemplates = GetTemplates(node, templates); NodeFamilyName = node.Name; }