public static void Main(string[] args) { Person[] person = new Person[] { new Person("A"), new Person("B"), new Person("C"), }; People people = new People(person); people.Print(); person[0].Name = "AAA"; people.Print(); /* * People: * Person - A * Person - BBB * Person - C */ Person[] person2 = people.Data; person2[1].Name = "BBB"; people.Print(); Person[] person3 = new Person[] { new Person("A"), new Person("B"), new Person("C"), }; people.Data = person3; person3[2].Name = "CCC"; people.Print(); Console.WriteLine("*******"); Console.WriteLine(people[0]); Person person4 = people[0]; person4.Name = "person4"; people.Print(); Console.WriteLine("*******"); Person person5 = new Person("D"); people[0] = person5; people.Print(); person5.Name = "person5"; people.Print(); }