zoukankan      html  css  js  c++  java
  • 事件

    namespace ConsoleApplication2
    {
        delegate string Mydelegatetwo(int x, int y);
        class personone
        {
            public string test(int a, int b)
            {
                return "";
            }
            public event Mydelegatetwo MyEvent;
            public void funMyEvent()
            {
                MyEvent(1, 2);
            }
        }
        class 事件
        {
            public static void Main()
            {
                事件 事件01 = new 事件();
                事件01.M();
            }
            public void M()
            {
                personone p1 = new personone();
                p1.MyEvent += p1.test;
                p1.MyEvent += funthree;
                p1.funMyEvent();
            }
            public string funthree(int a, int b)
            {
                return "";
            }
        }
    }
  • 相关阅读:
    Some day some time we will do
    qemu-img 的使用
    虚拟化qemu-img的简单用法。
    linux 后台执行命令
    C#向服务器上传文件问题
    Canvas保存为图片
    一个Sql备注
    fabric Clone
    Js 正则获取Html元素
    Graphic 完成文字缩放
  • 原文地址:https://www.cnblogs.com/bingguang/p/3164243.html
Copyright © 2011-2022 走看看