Wednesday, August 29, 2012

Linq distinct count of a value in a datatable


   var countings  = (from row in ti.Table.AsEnumerable()
                            select row["blah"].ToString()).Distinct();
            if(countings.Count<string>() > 1)
            {

No comments:

Post a Comment