/// <summary> /// Loads XML dictionaries in the specified folder (including subfolders). /// </summary> /// <param name="folderPath">The path where to look for dictionaries.</param> /// <param name="searchPattern">The string to match against the names of files in path.</param> /// <param name="loader">A function used to load dictionaries.</param> public static DictionaryLoader LoadXml(this DictionaryLoader loader, string folderPath) => loader.Load(folderPath, "*.xml", XmlDictionary.Load);
/// <summary> /// Loads JSON dictionaries in the specified folder (including subfolders). /// </summary> /// <param name="folderPath">The path where to look for dictionaries.</param> /// <param name="searchPattern">The string to match against the names of files in path.</param> /// <param name="loader">A function used to load dictionaries.</param> public static DictionaryLoader LoadJson(this DictionaryLoader loader, string folderPath) => loader.Load(folderPath, "*.json", JsonDictionary.Load);