コード例 #1
0
 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));
 }
コード例 #2
0
 public EdgeEnd(NodeFamily node, List <string> templates)
 {
     NamesWithTemplates = GetTemplates(node, templates);
     NodeFamilyName     = node.Name;
 }