V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
octalempyrean
V2EX  ›  C#

新手摸鱼,顺便请教个关于 C#的事件的问题。

  •  
  •   octalempyrean · 2019-11-04 15:58:05 +08:00 · 12099 次点击
    这是一个创建于 1606 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看同事的代码看到了如下两段:

    1. public partial class FormStartSet : Office2007Form
        {
            public delegate void returnvalue(string str);
            public returnvalue ReturnValue;
            ……
    2. FormStartSet f = new FormStartSet();
                    f.ReturnValue += new returnvalue(showvalue);
                    ……
    

    不是很懂,事件是 ReturnValue ?

    勿笑话哈。

    octalempyrean
        1
    octalempyrean  
    OP
       2019-11-04 16:09:44 +08:00
    不知道怎么关闭主题,知道答案了,看见勿回复啦;谢谢。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5413 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:47 · PVG 14:47 · LAX 23:47 · JFK 02:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.