private static string DisplayWordResult(Mot mot) { string result = ""; for (int i = 0; i < mot.Length; i++) { if (lettresEntrees.Contains(mot.GetChar(i).ToString())) { result += mot.GetChar(i); } else { result += "-"; } } return(result); }
private static string DisplayWordResult(Mot mot) { string result = ""; for (int i = 0; i < mot.Length; i++) { if (lettresEntrees.Contains(mot.GetChar(i).ToString())) { result += mot.GetChar(i); } else { result += "-"; } } return(result); }