Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- Func<bool> test = () => true;
- if (test())
- {
- Console.WriteLine(true);
- }
- else
- {
- Console.WriteLine(false);
- }
- Func<int, bool> test2 = (x) => x < 10;
- if (test2(6))
- {
- //6 < 10
- }
- else
- {
- //6 > 10
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment