octalempyrean
V2EX  ›  C#

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

  •  
  •   octalempyrean · Nov 4, 2019 · 12841 views
    This topic created in 2412 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   ·   2897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:59 · PVG 18:59 · LAX 03:59 · JFK 06:59
    ♥ Do have faith in what you're doing.