c# 将checkedListBox选择的值保存再数组中并转换成以指定字符连接的字符串
经常忘记,所以记一下:
string[] arr =new string[3]; int b = 0; foreach (string outstr in checkedListBox1.CheckedItems) { arr[b] = outstr; b++; } string power = string.Join(",", arr).Trim(',');
你关注的人都在努力变的更好,你还在等什么呢。