/// <summary> /// Sets a inflecter to the specified language code. /// </summary> /// <param name="language">The language code.</param> /// <param name="infleter">The infletor.</param> /// <exception cref="System.ArgumentNullException"> /// language /// or /// infletor /// </exception> public static void SetInflecter(string language, IInfleter infleter) { if (string.IsNullOrEmpty(language)) throw new ArgumentNullException("language"); if (infleter == null) throw new ArgumentNullException("infleter"); infletors[language] = infleter; }
/// <summary> /// Sets a inflecter to the specified language code. /// </summary> /// <param name="language">The language code.</param> /// <param name="infleter">The infletor.</param> /// <exception cref="System.ArgumentNullException"> /// language /// or /// infletor /// </exception> public static void SetInflecter(string language, IInfleter infleter) { if (string.IsNullOrEmpty(language)) { throw new ArgumentNullException("language"); } if (infleter == null) { throw new ArgumentNullException("infleter"); } infletors[language] = infleter; }