C#去掉list集合中的重复数据

            List<string> conList= new List<string>();
List<string> listII = new List<string>();
int m = 0;
for (int i = 0; i < conList.Count; i++)
{
string i_value = (string)conList[i];
for (int j = 0; j < conList.Count; j++)
{
string j_value = (string)conList[j];
if (i_value.cfg_Value == j_value.cfg_Value)
{
if (i != j)
{
m = j;
j--;
}
else
{
string con = (string)conList[i];
listII.Add(con);
}
}
}
}
上一篇:ProgressBar、ProgessDialog用法解析


下一篇:Gym.102006:Syrian Collegiate Programming Contest(寒假自训第11场)