Skip to content

Instantly share code, notes, and snippets.

@peteraritchie
Created February 22, 2012 16:02
Show Gist options
  • Save peteraritchie/1885697 to your computer and use it in GitHub Desktop.
Save peteraritchie/1885697 to your computer and use it in GitHub Desktop.
beginwithlambda
networkStream.BeginWrite(data, 0, data.Length,
ar =>
{
NetworkStream myNetworkStream =
(NetworkStream) ar.AsyncState;
myNetworkStream.EndWrite(ar);
}, networkStream);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment