C# Wie gebe ich mehr als nur IAsyncResult in AsyncCallback?

Wie gebe ich mehr als nur das IAsyncResult-in AsyncCallback?

Beispiel-code:

//Usage
var req = (HttpWebRequest)iAreq;
req.BeginGetResponse(new AsyncCallback(iEndGetResponse), req);

//Method
private void iEndGetResponse(IAsyncResult iA, bool iWantInToo) { /*...*/ }

Möchte ich gerne weitergeben in Beispiel variable bool iWantInToo. Ich weiß nicht, wie Sie hinzufügen, dass new AsyncCallback(iEndGetResponse).

InformationsquelleAutor PiZzL3 | 2011-04-11
Schreibe einen Kommentar