L
Le, Thanh-Nhan
Hi,
How can I from constructor of a class call another constructor? As following
(as in Java):
public class Test
{
public Test()
{
this("", "");
}
public Test(String p_sErrorMessage)
{
this(p_sErrorMessage, "");
}
public Test(String p_sErrorMessage, String p_sHelp)
{
txtMessage.Text = p_sErrorMessage;
txtHelp.Text = p_sHinweis;
}
}
Thanks
Nhan
How can I from constructor of a class call another constructor? As following
(as in Java):
public class Test
{
public Test()
{
this("", "");
}
public Test(String p_sErrorMessage)
{
this(p_sErrorMessage, "");
}
public Test(String p_sErrorMessage, String p_sHelp)
{
txtMessage.Text = p_sErrorMessage;
txtHelp.Text = p_sHinweis;
}
}
Thanks
Nhan