V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
octalempyrean
V2EX  ›  C#

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

  •  
  •   octalempyrean · Nov 4, 2019 · 12755 views
    This topic created in 2369 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   ·   2766 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:02 · PVG 19:02 · LAX 04:02 · JFK 07:02
    ♥ Do have faith in what you're doing.