StreamReader reader = new StramReader(responseStream, Encoding.UTF8); Esse código da erro, e eu importei todas as bibliotecas. O mesmo fala q eu não posso converter consoleApplication.StrreamReader para System.IO.StreamReader.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
string resposta;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("");
request.Method = "GET";
WebResponse response = request.GetResponse();
using(Stream responseStream = response.GetResponseStream())
{
StreamReader reader = new StramReader(responseStream, Encoding.UTF8);
resposta = reader.ReadToEnd();
}
Console.Write(resposta);
Console.Read();
}
}
}