我有以下课程。
public class AlloyDock
{
public int LeftA { get; set; }
public int RightA { get; set; }
}
public class Charger
{
public int LeftC { get; set; }
public int RightC { get; set; }
}
public class VehicleControlTest
{
public Charger Charger1 { get; set; }
}
public class BasicControlTest
{
public AlloyDock AlloyDock1 { get; set; }
}
class Appointment
{
public BasicControlTest BasicControlTest1 { get; set; }
public VehicleControlTest VehicleControlTest1 { get; set; }
}
我想从约会对象列表中获取字典形式的叶子名称,价值对。
结果数据应该在配对列表中<" PropertyName"," Value">形式:
<" LeftA",123>,<" RightA",123>,<" RightA",12113>,<&#34 ; LeftA",1323>
我正在关注link,但它没有返回所需的结果。
需要帮助。