ArrayList

using System.Collections;

ArrayList figureCalcList = new ArrayList();
do
{
/// 중간 생략
FigureCalculator calc = FigureCalculatorFactory.GetInstance(inputFigure);
figureCalcList.Add(calc);
/// 중간 생략
} while (Console.ReadKey().Key != ConsoleKey.Escape);

foreach (var calc in figureCalcList)
{
/// 중간 생략 – 출력
}

Leave a Reply

Your email address will not be published. Required fields are marked *