示例#1
0
            }             // func BindGetMember

            public override DynamicMetaObject BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)
            {
                if (args.Length > 0 || PpsDataHelper.IsStandardMember(LimitType, binder.Name))
                {
                    return(base.BindInvokeMember(binder, args));
                }
                else
                {
                    var column = (PpsDataColumnDefinition)Value;

                    return(new DynamicMetaObject(
                               column.Meta.GetMetaConstantExpression(binder.Name, true),
                               BindingRestrictions.GetInstanceRestriction(Expression, Value)
                               ));
                }
            }     // func BindInvokeMember
示例#2
0
            }             // ctor

            public override DynamicMetaObject BindGetMember(GetMemberBinder binder)
            {
                if (PpsDataHelper.IsStandardMember(LimitType, binder.Name))
                {
                    return(base.BindGetMember(binder));
                }
                else
                {
                    var column = (PpsDataColumnDefinition)Value;

                    return(new DynamicMetaObject(
                               column.Meta.GetMetaConstantExpression(binder.Name, false),
                               BindingRestrictions.GetInstanceRestriction(Expression, Value)
                               ));
                }
            }             // func BindGetMember