//去除string中重複的值
string mStr = "1,2,3,2,4,62,24,64,1,4,75,3,2,4,75";
string[] str = mStr.Split(',').Distinct().ToArray();
mStr = string.Join(",", mStr.Split(',').Distinct().ToArray());
textBox1.Text = mStr;
閱讀更多 »
string mStr = "1,2,3,2,4,62,24,64,1,4,75,3,2,4,75";
string[] str = mStr.Split(',').Distinct().ToArray();
mStr = string.Join(",", mStr.Split(',').Distinct().ToArray());
textBox1.Text = mStr;