4
Reply

Syntax

S

S

Jul 5 2012 6:31 AM
963
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)