When sending an HTTP request, the following code is used (the code is taken from MSDN and wrapped with using operators). How to avoid multiple nesting of operators?
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { using (Stream stream = response.GetResponseStream()) { using (StreamReader reader = new StreamReader(stream)) { result = reader.ReadToEnd(); reader.Close(); } stream.Close(); } response.Close(); }