octalempyrean
V2EX  ›  C#

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

  •  
  •   octalempyrean · Nov 4, 2019 · 12835 views
    This topic created in 2405 days ago, the information mentioned may be changed or developed.

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

    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
       Nov 4, 2019
    不知道怎么关闭主题,知道答案了,看见勿回复啦;谢谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1052 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:11 · PVG 07:11 · LAX 16:11 · JFK 19:11
    ♥ Do have faith in what you're doing.