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");
}