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 MethodInvoker vs verb {/ code>, or even The right time to use is writing lambda expression?

Edit: I know that there is not really much difference in writing Lambda versus 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

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -