Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //U ovom slucaju lambda izraz prima integer kao parametar i vraca prosledjeni integer uvecan za 5
- Func<int, int> multiplyByFive = num => //Nekako podebljati ovaj deo i naglasiti da je to lambda izraz u ovom slučaju
- {
- int product = num * 5;
- return product;
- };
- // Povratna vrednost je 35
- int result = multiplyByFive(7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement