我第一次接触委托,想知道这两种写法之间的区别。
OfferList.NextPage += delegate(int page)
{
OnNextPage(page);
};
void OnNextPage(int page)
{
...
}
并且
Toolbar.OfferBookmarkRemoved += new OfferBookmarkRemoved(OnOfferBookmarkRemoved);
void OnOfferBookmarkRemoved(int offerId)
{
...
}
Thanks in advance.
Toolbar.OfferBookmarkRemoved += OnOfferBookmarkRemoved;
。 - defaultOffer_List1.NextPage += (page) => OnNextPage(page);
翻译为:Offer_List1.NextPage += (page) => OnNextPage(page);
- MagnusToolbar.OfferBookmarkRemoved += page=>{.....};
工具栏.提供书签已删除 += 页面 => {.....}; - L.B