Network C# Tutorial

using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
    public class Client
    {
        static public void Main(string[] Args)
        {
            HttpWebRequest webRequest =(HttpWebRequest)WebRequest.Create("http://www.google.com/");
            HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
            StreamReader streamReader = new StreamReader(webResponse.GetResponseStream(), Encoding.ASCII);
            string outputString = streamReader.ReadToEnd();
            Console.WriteLine(outputString);
            streamReader.Close();
        }
    }