How do I pass more than just the IAsyncResult into AsyncCallback?
Example code:
//Usage
var req = (HttpWebRequest)iAreq;
req.BeginGetResponse(new AsyncCallback(iEndGetResponse), req);
//Method
private void iEndGetResponse(IAsyncResult iA, bool iWantInToo) { /*...*/ }
I would like to pass in example variable bool iWantInToo
. I don't know how to add that to new AsyncCallback(iEndGetResponse)
.