c# - MethodInvoker vs Action for Control.BeginInvoke -
Which is more correct and why?
control. Binwink (new action (dosoming), zero); Private Zero DoSomething () {MessageBox.Show ("What a Great Post"); }
or
control.businessinvoker representative {MessageBox.Show ("what a great post");});
I feel slightly like I am doing the same thing, so when Edit: I know that there is not really much difference in writing Lambda versus MethodInvoker
vs verb {/ code>, or even The right time to use is writing lambda expression?
action
, but lawful
one Being done for a specific purpose. Is it doing anything different?
Both are equally true, but it has been said that the document:
Representative can be an example of EventHandler, in that case the sender parameter will be included in this control, and the event parameter will include EventArgs. Empty representative can be an example of MethodInvoker, or any other representative who takes a zero parameter list. An event handler or a method option representative will be faster than one call to another call to another call.
Then MethodInvoker
will be a more efficient choice.
Comments
Post a Comment