Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Func<int, int, int> Sum = (x, y) => x + y;
  2.  
  3. public int AddFunctional(int x, int y, Func<int, int, int> operation) {
  4. int result = operation(x, y);
  5. Db.Save(result);
  6. return result;
  7. }
  8.  
  9. AddFunctional(1, 2, Sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement