public void getList()
    {
        List<string> outPut=new List<string>();
        outPut.Add("ad");
        outPut.Add("ac");
        outPut.Add("aa");
        outPut.Add("ac");
        for (int i = 0; i < outPut.Count; i++)
        {
            for (int j = i + 1; j < outPut.Count; j++)
            {

                if (outPut[i].ToString().Equals(outPut[j].ToString()))
                {
                    outPut.Remove(outPut[j].ToString());
                }
            }
        }
        foreach (string str in outPut)
        {
            Response.Write(str.ToString()+",");
        }
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-06-13
猜你喜欢
  • 2021-10-30
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-11-22
相关资源
相似解决方案