以前都會傻傻地跑迴圈串字串,其實只要一行就解決了說...
以前都會傻傻地跑迴圈串字串,其實只要一行就解決了說...
string[] arrayData = { "a", "b", "c", "d" };
string arrayString = string.Empty;
arrayString = string.Join(",", arrayData);
詳細資料請參考:http://msdn.microsoft.com/zh-tw/library/0h8wc12c.aspx