Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. foreach(var x in list)
  2. {
  3. if(condition(x)) { break;}
  4. //whatever
  5. }
  6. return z;
  7.  
  8. var z
  9. foreach(var x in list)
  10. {
  11. if(condition(x)) { z = something }
  12. if(condition2(x)) { break;}
  13. }
  14. if(z==something)
  15. {
  16. //will this code execute?
  17. }
  18. return z;
  19.  
  20. //some code
  21. if(condition)
  22. {
  23. return x
  24. }
  25. //more code possibly not executed
  26. if(condition2)
  27. {
  28. return y
  29. }
  30.  
  31. //more code possibly not executed
  32. return z;
  33.  
  34. foreach(x in list)
  35. {
  36. if(condition)
  37. {
  38. flag = y;
  39. }
  40. if(condition2 && flag)
  41. {
  42. return b;
  43. }
  44. if(condition3)
  45. {
  46. return c;
  47. }
  48. }
  49.  
  50. while(x.next && !condition(x))
  51. {
  52. //whatever
  53. }
  54.  
  55. list.Where(x=>condition(x)).select(//whatever)
Add Comment
Please, Sign In to add comment