internal static PropertyDescriptionRoute Combine(PropertyDescriptionRoute descendants, PropertyDescription description) { if (description == null) { return(descendants); } return(PropertyDescriptionRoute.Combine(descendants, new PropertyDescriptionRoute(description))); }
internal static PropertyDescriptionRoute Combine(PropertyDescriptionRoute descendants, PropertyDescriptionRoute ancestors) { if (ancestors == null) { return(descendants); } if (descendants == null) { return(ancestors); } return(PropertyDescriptionRoute.Combine( descendants.Current, PropertyDescriptionRoute.Combine(descendants.Parent, ancestors))); }