namespace stringJoin
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] empnames =
{"龍龍一",
"龍龍二",
"龍龍三",
"龍龍四",
"龍龍五",
"龍龍六",
};
List<string> TestWord = new List<string>() { " powerpnt.exe"," sketchup.exe"," Winword.exe"};
//https://dotblogs.com.tw/puma/2008/08/26/5200
private void button1_Click(object sender, EventArgs e)
{
List<string> Tword = new List<string>();
foreach (var item in TestWord)
{
var str = item.ToString().ToLower();
Tword.Add(str);
}
//label1.Text = string.Join(" , ", empnames.ToString().ToLower());
label1.Text = string.Join(" , ", Tword.ToArray());
}
}
}
沒有留言:
張貼留言