如果我有這樣的代碼:c#中委託數據結構中的+ =/- =均值是多少?
genetic = new Genetic();
genetic.foundNewBestGroupTour += new Genetico.NewBestGroupTourEventHandler(genetico_foundNewBestGroupTour);
什麼是+=
嗎?
genetic.foundNewBestGroupTour -= new Genetico.NewBestGroupTourEventHandler(genetico_foundNewBestGroupTour);
-=
是做什麼用的?
請閱讀http://csharpindepth.com/Articles/Chapter2/Events.aspx –