Example #1
0
        public Func <object, object> GetDotExpressionPart(string subItem, Type subType)
        {
            Func <object, object> func;

            if (!DottedExpressions.TryGetValue(subItem, out func))
            {
                var metod = subType.GetProperty(subItem, BindingFlags.Instance | BindingFlags.GetProperty | BindingFlags.Public | BindingFlags.NonPublic);
                func = TypeExtensions.BuildGetAccessor(metod.GetMethod);
                DottedExpressions.Add(subItem, func);
            }
            return(func);
        }