コード例 #1
0
ファイル: Program.cs プロジェクト: Jac21/GistsCollection
        static void Main()
        {
            IEnumerable<ProportionalPainter> painters = new ProportionalPainter[10];

            IPainter fastestPainter = CompositePainterFactory.CreateFastestSelector(painters);
            IPainter groupOfPainters = CompositePainterFactory.CreateGroup(painters);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10];

            IPainter fastestPainter = CompositePainterFactories.CreateFastestSelector(painters);

            IPainter group = CompositePainterFactories.CombineProportional(painters);
        }
コード例 #3
0
        static void Main(string[] args)
        {
            IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10];

            IPainter painter = CompositePainterFactories.CreateCheapestSelector(painters);
        }
コード例 #4
0
        //private static IPainter FindCheapestPainter(double sqMeters, Painters painters) =>
        //    painters.GetAvailable().GetCheapestOne(sqMeters);

        //private static IPainter FindFastestPainter(double sqMeters, Painters painters) =>
        //    painters.GetAvailable().GetFastestOne(sqMeters);

        static void Main(string[] args)
        {
            IEnumerable <ProportionalPainter> painters = new ProportionalPainter[10];

            IPainter painter = CompositePainterFactories.CombineProportional(painters);
        }