开发者

delegate method call

开发者 https://www.devze.com 2023-02-20 11:47 出处:网络
I want to kno开发者_高级运维w simply what is the benefit of adding methods using += in delegates..If you assigned a method to a delegate using =, you would replace any other methods that have already

I want to kno开发者_高级运维w simply what is the benefit of adding methods using += in delegates..


If you assigned a method to a delegate using =, you would replace any other methods that have already been assigned to that delegate. By using +=, you are adding a new method without removing any existing methods already assigned.

0

精彩评论

暂无评论...
验证码 换一张
取 消