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