public static class UriExtensions
public static string WebGet( this string pUrl )
using( var wc = new WebClient() )
wc.Headers.Add( "Content-Type", "text/plain; charset=utf-8" );
return wc.DownloadString( new Uri( pUrl ) );
public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine( "http://www.google.com".WebGet() );