/// <summary> /// Creates a new <see cref="WordList"/> object. /// </summary> /// <param name="words">The words in the list.</param> /// <param name="wordsSanitizer">The <see cref="IWordsSanitizer"/> to use on the collection of <paramref name="words"/>.</param> public WordList(IEnumerable <string> words, IWordsSanitizer wordsSanitizer) : this(words, wordsSanitizer.SanitizeWords) { }
/// <summary> /// Creates a new <see cref="FileWordList"/>. /// </summary> /// <param name="wordFile">The <see cref="FileInfo"/> object to load the words from.</param> /// <param name="wordsSanitizer">The <see cref="IWordsSanitizer"/> to use on the words loaded from the <paramref name="wordFile"/>.</param> public FileWordList(FileInfo wordFile, IWordsSanitizer wordsSanitizer) : this(wordFile, wordsSanitizer.SanitizeWords) { }