George George

George George

  • NA
  • 778
  • 0

BeginInvoke in asynchronous model

Aug 15 2008 3:44 AM

Hello everyone,


Two basic questions about BeginInvoke in asynchronous model. More specifically I am asking from this URL,

http://msdn.microsoft.com/en-us/library/bb559033.aspx

1.

I am wondering whether there is any benefit to pass an object by reference to BeginInvoke? Since in EndInvoke, the results will be retrieved. So, pass by value is fine? Any benefits to pass by reference in BeginInvoke?

2.

Any needs to pass asyncState parameter? I think we can define enough values in the 1st input parameter to BeginInvoke and then asyncState parameter will become useless?


thanks in advance,
George