private int[] PossibleSeeds(int[] rowIndex) { IEnumerable <byte[]> possibleSubTables = SubTables.AsEnumerable(); for (int i = 0; i < rowIndex.Length; i++) { int iLocal = i; possibleSubTables = possibleSubTables.Where(x => x[rowIndex[iLocal]] == 5 - iLocal); } int[] possibleSeeds = possibleSubTables.Select(x => SubTables.ToList().IndexOf(x)).ToArray(); return(possibleSeeds); }
public void CreatSubTable(string scop) { var table = new SymbolTable(scop, this); SubTables.Add(table); }