委托的内部构造


addMo mo = new addMo(AddFunc);
Program p=new Program();
mo += p.AddOtherFunc;

在这里AddFunc指的就是-methodPtr

p就是指的-target

AddOtherFunc就是委托数组中的第一个索引

如果继续+=委托数组的索引会继续增加




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章