c# - How do I assign an event handler to an event in C++/CLI? -
how add "events" "event"/delegate? syntax? same in c++/cli , in c#?
in c#, +=
operator:
someobj.someevent += new eventhandler(blah_someevent);
...
private void blah_someevent(object sender, eventargs e) { }
more-than-a-year-later-edit
it has been long time since posted answer , noticed me maybe wrong. don't know why op marked answer right 1 (maybe op looking rather c++-cli syntax? knows now).
anyway, in c++-cli be:
someobj->someevent+= gcnew eventhandler(this, &blah_someevent);
Comments
Post a Comment