Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- ((Func<bool>)(() => X() || Y() || Z())).Invoke();
- }
- static bool X()
- {
- Console.Write(" X ");
- return false;
- }
- static bool Y()
- {
- Console.Write(" Y ");
- return true;
- }
- static bool Z()
- {
- Console.Write(" Z ");
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement