public static ReadToEnd ( this webRes ) : string | ||
webRes | this | |
return | string |
public static string ReadToEnd(this WebResponse webRes)
{
using (var stream = webRes.GetResponseStream())
using (var reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
}