Пример #1
0
        public static IEnumerable <PropertyWithComponent> Unflat(string flatPropertyName, object target, Func <Type, bool> f, StringComparison comparison)
        {
            var trails = TrailFinder.GetTrails(flatPropertyName, target.GetType().GetProps(), f, comparison);

            return(trails.Select(trail => Tunnelier.Digg(trail, target)));
        }
Пример #2
0
        public static IEnumerable <PropertyWithComponent> Flat(string flatPropertyName, object source, Func <Type, bool> f, StringComparison comparison)
        {
            var trails = TrailFinder.GetTrails(flatPropertyName, source.GetType().GetProps(), f, comparison);

            return(trails.Select(trail => Tunnelier.GetValue(trail, source)));
        }