I have a constructor like:
public Blah(string a, string b)
{
}
public Blah(string a, string b, string c)
{
this.a =a;
this.b =b;
this.c =c;
}
How can I call the 2nd constructor from the 1st one?
like:
public Blah(string a, string b)
{
Blah(a,b, "");
}
public Blah(string a, string b) : this(a, b, "")
{
}
public Blah(string a, string b, string c)
{
// etc
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With