Is there way to rewrite:
var tbl = ds.TABLES; var q = from c in tbl select c.TABLE_TYPE; string s = \"\"; foreach (var item in q.Distinct()) { s
VB has this functionality if you place the distinct after select.