string[] blogId = arrayhtml.Split(',');//blogId为带有重复项的数组。
            ArrayList result = new ArrayList();
           
            for (int i = 0; i < blogId.Length; i++)
            {
                if (!result.Contains(blogId[i].ToString()))
                    result.Add(blogId[i].ToString());
            }

            foreach (string str in result)
            {
                Console.Write(str + "\n");
            }

 

相关文章:

  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2021-04-20
  • 2021-12-08
  • 2021-10-15
  • 2021-10-07
猜你喜欢
  • 2021-12-19
  • 2021-09-25
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
相关资源
相似解决方案