コード例 #1
0
 public Rectangle(double width, double height)
 {
     this.Width  = ShapesParamsValidation.CheckWidth(width);
     this.Height = ShapesParamsValidation.CheckHeight(height);
 }
コード例 #2
0
 public Square(double side)
 {
     this.Width  = ShapesParamsValidation.CheckSquareSide(side);
     this.Height = ShapesParamsValidation.CheckSquareSide(side);
 }