TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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
Reply
Answers (
1
)
Callbacks "Inconsistent Accessibility" Error
LINQ request