[Solved] property within a class with the same properties as the parent class [closed]

[ad_1]

It can reference itself.

public class Person  {
    public string Name { get; set; }
    public int Age { get; set; }
    public List<Person> Children { get; set; }
}  

3

[ad_2]

solved property within a class with the same properties as the parent class [closed]