2009年7月1日

C#中如何去除数组中重复的项

摘要: 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(blogI... 阅读全文

posted @ 2009-07-01 11:10 边写边唱 阅读(880) 评论(1) 推荐(0) 编辑

导航