예제 #1
0
파일: Program.cs 프로젝트: runceel/samples
        static void Main(string[] args)
        {
            var parent = new Person { FirstName = "taro", LastName = "tanaka" };
            var child = new Person { FirstName = "jiro" };

            parent.AddChild(child);

            Console.WriteLine("{0} {1}", parent.LastName, parent.FirstName);
            Console.WriteLine("{0} {1}", child.LastName, child.FirstName);
        }
예제 #2
0
파일: Program.cs 프로젝트: runceel/samples
 public void AddChild(Person child)
 {
     this.AddLogicalChild(child);
 }