weird VS error marking

  • Thread starter Thread starter Marty U.
  • Start date Start date
M

Marty U.

Can someone tell me why Visual Studio thinks this is incorrect:
DataTable dtblItems = New DataTable("Items");

It is saying that it expects a ; after DataTable instead of the ("Items")

The same for

DataSet dsItems = New DataSet();

VS is saying ; Expected after DataSet.

I am new to C# so please tell me if this is a newbie error.
 
Marty said:
Can someone tell me why Visual Studio thinks this is incorrect:
DataTable dtblItems = New DataTable("Items");

It is saying that it expects a ; after DataTable instead of the ("Items")

The same for

DataSet dsItems = New DataSet();

VS is saying ; Expected after DataSet.

I am new to C# so please tell me if this is a newbie error.

Nevermind new headline "Case Sensitivity in C# eats VB guy for lunch"
 
Back
Top