Thanks
Nhan
"David Browne" <davidbaxterbrowne no potted
(E-Mail Removed)> schrieb im
Newsbeitrag news:#(E-Mail Removed)...
>
> "Le, Thanh-Nhan" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi,
> > How can I from constructor of a class call another constructor? As
> > following
> > (as in Java):
> >
> >
>
> C# uses the C++ style of contstructor invocation:
>
> 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;
> }
> }
>
> David
>
>