/// <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)); }