/// <summary> /// Конструктор /// </summary> /// <param name="type">Тип фигуры</param> /// <param name="square"></param> public CalculationResultSuggestion(IFigure figure, params double[] parameters) { var type = figure.GetType(); Type = type; Name = type.Name; Square = figure.CalculateFigureSquare(parameters); }