public School() { ChildList = new List <SchoolChild>(); subjects = new Subjects(); }
private School(SerializationInfo info, StreamingContext context) { ChildList = info.GetValue(nameof(ChildList), typeof(List <SchoolChild>)) as List <SchoolChild>; subjects = (Subjects)info.GetValue(nameof(subjects), typeof(Subjects)); }