public void SetValue(object rootObj, object value) { var obj = ParentInfo == null ? rootObj : ParentInfo.GetValue(rootObj); Info.SetValue(GetParentValue(rootObj), value); }
private object GetParentValue(object rootObj) { var obj = ParentInfo == null ? rootObj : ParentInfo.GetValue(rootObj); return(obj); }