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
hadoop hadoop
NA
159
50.3k
constructor problem
May 24 2015 7:50 AM
I called my class clsEmpInfo from another class.
My code is,
// group-select.cs
clsEmpInfo objAlly = new clsEmpInfo(SetDataForAlly(getRow, userName));
private clsEmpInfo.getAlly SetDataForIME(GridViewRow getRow, string userName)
{
clsEmpInfo.getAlly Allyobj = new clsEmpInfo.getAlly();
Allyobj.user_id = getRow.Cells[1];
Allyobj.user_token = getRow.Cells[2];
Allyobj.user_name = userName;
}
when I do
clsEmpInfo objAlly = new clsEmpInfo(SetDataForAlly(getRow, userName));
gives error,
does not contain constructor that takes one arguments
Then visual studio generates constructor in clsEmpInfo
public class clsEmpInfo
{
// this is generated by visual studio
public clsEmpInfo(getAlly get_ally)
{
// TODO: Complete member initialization
this.get_ally = get_ally;
}
public class getAlly
{
public string user_id { get; set; } //PIN No (for IME)
public string user_token { get; set; }
public string user_name { get; set; }
}
}
what does this mean // TODO: Complete member initialization
???
Reply
Answers (
1
)
Queries on ASP.NET Authentication as its not working
Provider didnt return providermanifest instance, VS2013, ef6