Пример #1
0
        public Expression Bonded(ValueHandler handler)
        {
            var bondedCtor = typeof(BondedVoid <>).MakeGenericType(typeof(R)).GetConstructor(typeof(R));

            return(Expression.Block(
                       handler(Expression.New(bondedCtor, reader.Param)),
                       reader.Skip(Expression.Constant(BondDataType.BT_STRUCT))));
        }
Пример #2
0
        public Expression Bonded(ValueHandler handler)
        {
            var newBonded = bondedFactory(reader.Param, Expression.Constant(RuntimeSchema.Empty));

            return(Expression.Block(
                       handler(newBonded),
                       reader.Skip(Expression.Constant(BondDataType.BT_STRUCT))));
        }