LINQ to get sorted distinct data from 2 columns

private void LinqQuery() {

  var query = (from c in fsDs.TypedDataTable

                             select c.Column1)

                           .Union(from c in fsDs.TypedDataTable

                           select c.Column2).Distinct().OrderBy(s => s);

}

Comments are closed.