Skip to main content

All Questions

1 vote
3 answers
2k views

Using delegates to avoid duplicate creation of resources

I'm writing a PCL that uses an HttpClient to go visit a few sites and extract data from them. My initial code looked like this: public static class Download { public async static Task<byte[]&...
James Ko's user avatar
  • 358