コード例 #1
0
 public SyntaxNodeTags(List <Tuple <int, int> > tags)
 {
     tags.ForEach(t =>
     {
         CategoryIndices.Add(t.Item1);
         TagIndices.Add(t.Item2);
     });
 }
コード例 #2
0
 public List <Tuple <int, int> > ToNodeInfoTags()
 {
     return(CategoryIndices
            .Zip(TagIndices, (category, tag) => new Tuple <int, int>(category, tag))
            .ToList());
 }