Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. var myObject= new List<Core.MyObject>();
  2. var myObject2= new List<Core.MyObject>();
  3.  
  4. if(!string.IsNullOrEmpty(txb.Text))
  5. {
  6. var repository = ServiceLocator.Current.GetInstance<Core.RepositoryInterfaces.IRepository>();
  7. myObject= repository.GetWherePostCodeLike(txb.Text).ToList();
  8. }
  9.  
  10. if(!string.IsNullOrWhiteSpace(ddl.SelectedValue))
  11. {
  12. var repository = ServiceLocator.Current.GetInstance<Core.RepositoryInterfaces.IRepository>();
  13. myObject2= repository.GetNearTownX(ddlLocations.SelectedValue).ToList();
  14. }
  15.  
  16. IEnumerable<MyObject> third = list.Concat(otherList);
  17.  
  18. var combined = dataSet.Concat(dataSet2).ToList();
  19.  
  20. dataSet.AddRange(dataSet2);
  21.  
  22. var merged = dataSet.Concat(dataSet2).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement