I have following code.
Classes:
public class AlloyDock { public int Left { get; set; } public int Right { get; set; } } pub
The problem is with this expression:
leafProperty.GetValue(obj, null)
You are passing the root object in to get the leaf property. As you process each property you need to get its value and then call GetValue against it.
GetValue