Guest User

Untitled

a guest
Oct 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. using system.Linq.dynamic
  2.  
  3. public class data
  4. {
  5. public int column1{ get; set; }
  6. public int column2{ get; set; }
  7. public string column3{ get; set; }
  8. }
  9. List<data> ListOfdata=new List<data>();
  10. for(i=1:i<10;i++)
  11. {
  12. data newdata=new data();
  13. newdata.column1=i;
  14. newdata.column2=i+1;
  15. ListOfdata.Add(newdata)
  16. }
  17.  
  18. condition1="column1!=Null AND column1=column2";
  19.  
  20. var filter=ListOfdata.where(condition).Tolist();
Add Comment
Please, Sign In to add comment