Public void List() { string x=""; foreach( var item in t) { x= .... } }
var c=MyStudent.tblStudent.Select(x=>x.tblPerson).Distinct().ToList();
var c=MyStudent.tblStudent.Where(x).Select(x=>x.tblPerson).Distinct().ToList(); ////but where(x) is error.
where
var c=MyStudent.tblStudent.Where(x => x.Contains("John")).Select(x=>x.tblPerson).Distinct().ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)