Advertisement
kanagara

Untitled

May 23rd, 2020
1,814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. //U ovom slucaju lambda izraz prima integer kao parametar i vraca prosledjeni integer uvecan za 5
  2. Func<int, int> multiplyByFive = num => //Nekako podebljati ovaj deo i naglasiti da je to lambda izraz u ovom slučaju
  3. {
  4.     int product = num * 5;
  5.     return product;
  6. };
  7. // Povratna vrednost je 35
  8. int result = multiplyByFive(7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement