I am probably just be being a bit stupid but...
That works fine, but what if I want to alter the string in the string in the first constructor before passing it on to the second?
That obviously doesnt work and I have tried other things so what is the solution? Unless moving the shared code into a seperate method is the only way.
Thanks
-Martin
Code:
public MyClass( string s) : this( s, true )
public MyClass( string s, bool b )
{
...
}
Code:
public MyClass( string s)
{
this( s + "muh", true);
}
public MyClass( string s, bool b )
{
...
}
Thanks
-Martin