コード例 #1
0
ファイル: StringExtension.cs プロジェクト: rluizs65/Sinaf
        /// <summary>
        /// Converte string para código Soundex
        /// </summary>
        /// <param name="str"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        public static string ToSoundex(this string str, int length)
        {
            ISoundex phonetic = new Soundex(length);

            return(phonetic.GetToken(str));
        }