Пример #1
0
 public void Visit(Cylinder cylinder)
 {
     SurfaceArea = 2 * Math.PI * cylinder.Radius * (cylinder.Radius + cylinder.Height);
 }
Пример #2
0
 public void Visit(Cylinder c)
 {
     Dimensions = new Dimensions(c.Radius * 2, c.Height);
 }
Пример #3
0
 public void Visit(Cylinder cylinder)
 {
     Dimensions = new Dimensions(2 * cylinder.Radius, cylinder.Height);
 }
Пример #4
0
 public void Visit(Cylinder c)
 {
     SurfaceArea = 2 * Math.PI * c.Radius * (c.Radius + c.Height);
 }