Bonjour ,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
static string ConvertMajtoMin(string input)
        {
            char[] vide = new char[] { ' ' };
            string[] tab = input.Split();
            string newstring = "";
            for (int i = 0; i <= tab.Length; i++)
 
                newstring = newstring + " ";
                newstring = tab[0].ToString().ToUpper() + tab.Substring(i).ToLower(); 
 
                return newstring;
        }
dans mon code il convert chaue premiere lettre en Majescule et la suite du mots en miniscule
le probleme se pose dans le substring.
j'arrive pas a comprendre pourquoi .