Last active
May 13, 2018 08:59
-
-
Save kainio/701fbc0b55a2dcab02263e0a7b1f5c38 to your computer and use it in GitHub Desktop.
La fonction Split()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Déclaration du sépérateur | |
char[] separator = { ' ' }; | |
// Exemple | |
string nom = "Anass anass"; | |
string[] mots = nom.Split(separator); | |
// Exemple: utilisation en windowsfroms avec listbox | |
listBox1.Items.AddRange(textBox1.Text.Split(separator)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment