I have 2 constructors, accepting different types of arguments:
public someClass(String s) {
// the string is parsed to an int array.
int[] array = doSomething(s);
this(array);
}
public someClass(int[] array) {
doSomethingElse(array);
}
However on the first constructor I get "Method name is expected". Is there a way to have a constructor call another after performing other actions, or is it simply a limitation of C#?