public CharacterGrid(int rowCount, int columnCount, char[] characters) { if (characters.Length % columnCount != 0) throw new ArgumentException("Column count and character array do not match a square or rectangular grid."); RowCount = rowCount; ColumnCount = columnCount; Characters = characters; FoundWords = new FoundWordList(); }
public SearchNavigationData() { if (FoundWordList == null) { FoundWordList = new List <string> (0); } else { FoundWordList.Clear(); } if (SearchItem == null) { SearchItem = new SearchDisplayResult(); } }