Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DelegatesAndEvents
- {
- public class ProcessData
- {
- public void Process(int x, int y, BizRulesDelegate del)
- {
- var result = del(x, y);
- Console.WriteLine(result);
- }
- public void ProcessAction(int x, int y, Action<int, int> action)
- {
- action(x, y);
- Console.WriteLine("Action has been processed!");
- }
- public void ProcessFunc(int x, int y, Func<int, int, int> del)
- {
- var result = del(x, y);
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement