Exemple #1
0
        /// <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;
        }
Exemple #2
0
        /// <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;
        }