I am trying to create Google BigQuery Table Schema Explicitly, TableSchema.Fields.Add() method throws Object Reference Exception.
TableSchema Schema = response.Schema;
TableFieldSchema sc1 = new TableFieldSchema();
sc1.Name = "CustomerID";
sc1.Type = "STRING";
sc1.Mode = "NULLABLE";
Schema.Fields.Add(sc1); -- Throws Error.
I can able to create new TableSchema in .NET client library by using below code.