System.Net.WebConnectionStream.ReadCallbackWrapper C# (CSharp) Method

ReadCallbackWrapper() static private method

static private ReadCallbackWrapper ( IAsyncResult r ) : void
r IAsyncResult
return void
	   	void ReadCallbackWrapper (IAsyncResult r)
		{
			WebAsyncResult result;
			if (r.AsyncState != null) {
				result = (WebAsyncResult) r.AsyncState;
				result.InnerAsyncResult = r;
				result.DoCallback ();
			} else {
				try {
					EndRead (r);
				} catch {
				}
			}
		}