Guest User

Guest User

  • Tech Writer
  • 357
  • 120.5k

Syntax

Jul 5 2012 6:31 AM
Hi

Given the following statement:-

new WebClient().DownloadString("http://www.foo.com");

I require help in understand the syntax's

WebClient()

// This is a class but has a parenthesis as if it were a method.

.DownloadString("http://www.foo.com");

// This method is not Static OR an Extension method but is accessed with the dot notation as if it were Static or an Extension.

Regards

Steven

Answers (4)