示例#1
0
        internal static PropertyDescriptionRoute Combine(PropertyDescriptionRoute descendants, PropertyDescription description)
        {
            if (description == null)
            {
                return(descendants);
            }

            return(PropertyDescriptionRoute.Combine(descendants, new PropertyDescriptionRoute(description)));
        }
示例#2
0
        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)));
        }