Your question is a little unclear, so I'm going to take your comment that you don't want duplicates in your item collection as the question. If this is indeed accurate then I can think of two possible solutions: one is to filter duplicates when you get the data from the database, and the other is to enforce this in your c# code.
It won't alter the output to two integers comma separated as you've put in your example, but judging from your later comments this isn't what you're trying to do.
SQL Solution
You could use distinct if you're using sql to retrieve the data, for example:
select id from aTable
becomes:
select distinct id from aTable
C# Collection Solution
You could use the inbuilt functions of an arraylist, for example, to prevent duplicates:
var data = new int[4];
data[0] = 9;
data[1] = 9;
data[2] = 10;
data[3] = 10;
var item = new ArrayList();
foreach (int i in data)
if (!item.Contains(i)) item.Add(i);
I hope one of these solves your problem! Best of luck!