Hi all,

For example:

vb.net Code:
  1. Dim wc As New System.Net.WebClient()
  2. Dim wc As Net.WebClient = New System.Net.WebClient()

As the first line above is a shortcut for the second, is there an equivalent in C# for this or is this the only option?

c# Code:
  1. System.Net.WebClient wc = new System.Net.WebClient();

Thanks.