/// <summary> /// Initializes a new instance of the RantDictionaryTable class with the specified name and term count. /// </summary> /// <param name="name">The name of the table.</param> /// <param name="termsPerEntry">The number of terms to store in each entry.</param> /// <param name="hidden">Collection of hidden classes.</param> public RantDictionaryTable(string name, int termsPerEntry, HashSet <string> hidden = null) { if (name == null) { throw new ArgumentNullException(nameof(name)); } if (termsPerEntry <= 0) { throw new ArgumentException(Txtres.GetString("err-bad-term-count")); } if (!Util.ValidateName(name)) { throw new ArgumentException(Txtres.GetString("err-invalid-tablename", name)); } if (hidden != null) { _hidden = hidden; } _cache = new ClassCache(); TermsPerEntry = termsPerEntry; Name = name; CreateSyllableBuckets(); }
internal RantDictionaryTable() { // Used by serializer _cache = new ClassCache(); }