コード例 #1
0
ファイル: Program.cs プロジェクト: rwpcpe/pattern-of-the-week
        static void Main(string[] args)
        {
            var builder = new ShirtBuilder();

            builder.ShirtColor = Color.Blue;
            builder.ShirtSize = 45;

            var shirt = builder.Build();

            Console.WriteLine("Color: " + shirt.Color.ToString());
            Console.WriteLine("Size: " + shirt.Size.ToString());

            Console.Read();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            var builder = new ShirtBuilder();

            builder.ShirtColor = Color.Blue;
            builder.ShirtSize  = 45;

            var shirt = builder.Build();

            Console.WriteLine("Color: " + shirt.Color.ToString());
            Console.WriteLine("Size: " + shirt.Size.ToString());

            Console.Read();
        }