Guest User

Untitled

a guest
Mar 2nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if (!IsPostBack)
  2. {
  3. int reccount = dsResult.Tables[0].Rows.Count;
  4. for (int count = 0; count < reccount;count++)
  5. {
  6. HashSet<string> arrayOrdId = new HashSet<string>();
  7. arrayOrdId.Add(dsResult.Tables[0].Rows[count][1].ToString());
  8. // arrayOrdId[count] = dsResult.Tables[0].Rows[count][1].ToString();
  9. }
  10. }
  11.  
  12. var missingFromX = y.Except(x);
  13. var missingFromY = x.Except(y);
  14. // Do whatever you want with those differences
  15.  
  16. var orders1 = new HashSet<string>();
  17. var orders2 = new HashSet<string>();
  18.  
  19. // add the orders to the sets, not stringbuilders, here
  20.  
  21. var order1sInOrders2 = orders1.Intersect(orders2);
  22. var order2sNotInOrders1 = orders2.Except(orders1);
Advertisement
Add Comment
Please, Sign In to add comment