Ejemplo n.º 1
0
        /// <summary>
        /// Use a different vocabulary set
        /// </summary>
        /// <param name="vocabularySet">New <see cref="VocabularySet"/> to use.</param>
        public WordTutorApplication WithVocabularySet(VocabularySet vocabularySet)
        {
            if (ReferenceEquals(VocabularySet, vocabularySet))
            {
                return(this);
            }

            return(new WordTutorApplication(
                       this,
                       vocabularySet: vocabularySet ?? throw new ArgumentNullException(nameof(vocabularySet))));
        }
Ejemplo n.º 2
0
 public static VocabularySet Add(this VocabularySet vocabulary, params VocabularyWord[] words)
 => words.Aggregate(