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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top