G
Guest
I forget the right syntax....
If I Have multiple signatures for a constructor, but I want each to call a
"main" version of the constructor...I can't remember how to do this in C#....
public MyClass(string a, string b)
{
Do something....
}
public MyClass(sting a, string b, string c)
{
_FieldC = c;
MyClass(a, b);
}
So trying to call the "main" constructor as MyClass(a,b) from withing the
MyClass(a, b, c) constructors is not the right syntax...how should this be
called in C#?
Thanks in advance for your assistance...
If I Have multiple signatures for a constructor, but I want each to call a
"main" version of the constructor...I can't remember how to do this in C#....
public MyClass(string a, string b)
{
Do something....
}
public MyClass(sting a, string b, string c)
{
_FieldC = c;
MyClass(a, b);
}
So trying to call the "main" constructor as MyClass(a,b) from withing the
MyClass(a, b, c) constructors is not the right syntax...how should this be
called in C#?
Thanks in advance for your assistance...