Hello
can linq accept string input???
C#:
class Person
{
public string ID;
public string Name;
}
Ienumerable<Person> ps= lst.Where(n=>n.ID anf n=>n.Name)
string str = " Where ID = 1 and Name= 'joue' ;
Ienumerable <Person> ps=
lst.Where(str)
Ienumerable<Person> ts=
ps.Orderby(r=>r.ID and r=>r.Name)
string str1 = " Orderby ID, Name ";
Ienumerable ts = ps.Orderby(str1);
can linq accept string input???
Last edited: