我需要在一个构造函数中调用另一个构造函数。我该怎么做?
基本上
class foo {
public foo (int x, int y)
{
}
public foo (string s)
{
// ... do something
// Call another constructor
this (x, y); // Doesn't work
foo (x, y); // neither
}
}