Ajouter des chaînes à une liste de chaînes et convertir la liste en un tableau:
public string[] getStrTab()
{
List<string> strList = new List<string>();
string str1 = "Salut";
string str2 = "Bonjour";
string str3 = "Bonsoir";
string str4 = "Au revoir";
strList.Add(str1);
strList.Add(str2);
strList.Add(str3);
strList.Add(str4);
return strList.ToArray();
}