Dear reader,
In my code I get the following error:
AddComment.cs(3 2): The best overloaded method match for
'WebLogger.Mess age.SelectMessa ge(string, out string, out string)' has some
invalid arguments
This is the code:
class Message
{
...
public int SelectMessage(s tring pID, out string pTitle, out string
pAddedDate)
{
...
}
}
class AddComment
{
...
public void InsertComment(i nt pMessageID, string pAuthor, string pEmail,
string pComment)
{
string msgTitle, msgAddedDate;
Message msg = new Message();
msg.SelectMessa ge(pMessageID, out msgTitle, out msgAddedDate);
}
}
Does anybody have an idea?
I'm quite new to C#, so this could easily be something stupid.
Thanks in advance,
Eddy de Boer
In my code I get the following error:
AddComment.cs(3 2): The best overloaded method match for
'WebLogger.Mess age.SelectMessa ge(string, out string, out string)' has some
invalid arguments
This is the code:
class Message
{
...
public int SelectMessage(s tring pID, out string pTitle, out string
pAddedDate)
{
...
}
}
class AddComment
{
...
public void InsertComment(i nt pMessageID, string pAuthor, string pEmail,
string pComment)
{
string msgTitle, msgAddedDate;
Message msg = new Message();
msg.SelectMessa ge(pMessageID, out msgTitle, out msgAddedDate);
}
}
Does anybody have an idea?
I'm quite new to C#, so this could easily be something stupid.
Thanks in advance,
Eddy de Boer
Comment