Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ButtonClickInfo
- {
- public int x, y;
- public ButtonClickInfo(int x, int y)
- {
- this.x = x; this.y = y;
- }
- }
- class Program
- {
- delegate void OnClickDelegate(ButtonClickInfo e);
- static void OnClick(ButtonClickInfo e)
- {
- Console.WriteLine(e.x + "," + e.y);
- }
- static void Main(string[] args)
- {
- OnClickDelegate handler = OnClick;
- handler(new ButtonClickInfo(123, 321));
- Console.ReadLine();
- }
- }
Add Comment
Please, Sign In to add comment