title: sample VB.Net code for reading data from Big Query
body: <p>I need to query Google Big Query table using Google BigQuery API. I am using Visual Studio 2012 with VB.NET. I found a sample code in C# and I could get it to work with a minor change in Visual Studio 2012 using C#. </p>
  
  <p>Reference: <a href="https://stackoverflow.com/questions/12443878/google-bigquery-with-net-documentation-samples">Google BigQuery with .NET documentation/ samples</a></p>
  
  <p>I need the code in VB.NET so I converted the code to VB.Net and everything compiles fine except the following line of code. </p>
  
  <pre><code>// Get the auth URL in C# that works fine:
              IAuthorizationState state = new AuthorizationState(new[] {  BigqueryService.Scopes.Bigquery.GetStringValue() });
  
      ' Get the auth URL in VB.NET that is giving an error “Type expected” :      
  Dim state As IAuthorizationState = New AuthorizationState(New () {BigqueryService.Scopes.Bigquery.GetStringValue()})
  </code></pre>
  
  <p>Visual Studio give the error “Type expected” for the code in VB.NET. Anybody knows that what is the correct syntax in VB.NET for this line of code? </p>