Return list of specific property of object using linq

var list = stockItems.Select(item => item.StockID).ToList();

You could also do it like this:

ids = stockItems.ConvertAll<Guid>(o => o.StockID);