Hello Everyone,
I have below classes. I want to to initialize child class property(List
public class Child : Parent
{
public Child (Data param) : base(param)
{
}
public List ChildList { get; set; }
}
public class Parent
{
public Parent(Data param)
{
this.MsgInfo = param;
}
public Data MsgInfo { get; set; }
}
public class Data
{
public int Type { get; set; }
public long ID { get; set; }
}
I am trying to initialize like this. but not showing ChildList property here. what's wrong here
p.MsgInfo.ChildList
Thanks
Krish
Geo J ThachankaryPosted Aug 3, 2021, 12:05 PM