예제 #1
0
파일: Program.cs 프로젝트: tolkyu/pattern_9
            static void Main(string[] args)
            {
                User Ivan  = new EmployeeBuilder().setName("Ivan").setCompany("None").setAge(23);
                User Petro = new EmployeeBuilder().setName("Petro").isMarried.setAge(88);

                WriteLine(Ivan);
                WriteLine(Petro);
            }
예제 #2
0
        static void Main(string[] args)
        {
            var employee = new EmployeeBuilder()
                           .SetName("Chen Kim")
                           .SetPosition(".NET Developer")
                           .SetSalary(20)
                           .Build();

            Console.WriteLine(employee.ToString());
        }