public void AddWords(PresentTenseWordType type, IEnumerable <string> words) { if (this.words.ContainsKey(type)) { var currentWords = this.words[type].ToList(); currentWords.AddRange(words); this.words[type] = currentWords.AsEnumerable(); } else { this.words[type] = words; } }
public void AddWords(PresentTenseWordType type, string fileName) { AddWords(type, PresentTenseWordsLoader.LoadWords(fileName)); }
private void InitWordType(string name, string stackID, params string[] words) { var type = new PresentTenseWordType(name, stackID); AddWords(type, words); }
private void InitWordType(string name, string stackID) { var type = new PresentTenseWordType(name, stackID); AddWords(type, type.name); }