You haven't given much to go on apart from your own custom code, but I'd have a read of this
LINQ Samples[
^]
But this is taken from the article
public void Linq47()
{
List<product> products = GetProductList();
var categoryNames = (
from p in products
select p.Category)
.Distinct();
Console.WriteLine("Category names:");
foreach (var n in categoryNames)
{
Console.WriteLine(n);
}
}
</product>
If you could explain where you are stuck more then we may be able to give you a better answer.