我知道我可以在下面的另一个构造函数上访问构造函数但是有没有办法在构造函数体中访问它?
public Rectangle(int size) : this(size, size)
{
Console.WriteLine("Square Constructor Called");
//this(size,size); i want to access like this
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
318 次 |
| 最近记录: |