Sayed Faiz

Sayed Faiz

  • NA
  • 7
  • 0

trouble declaring the variables...very confused....

Mar 28 2009 10:32 PM
for some strange reason I am not able to do very simple stuffs, like declaring a variable...for example when I write 'private bool result' it shows red error lines under both private and bool in visual studio stating that " ; expected " for bool and "Invalid expression term 'private' "
here is a sample code below:

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
using System.Data;

namespace DataAccessLayer
{
    public abstract class BaseDAL
    {
        public DataTable getMultipleData(string query)
          {
               private bool result;
           }

     }
}

where am i going wrong here?!?!?! very confused...im using .NET 2.0 and Visual Studio 2005

Answers (1)