Пример #1
0
        void EmitReadTail(SerializerCodeGen g, CompilerContext ctx, IProtoSerializerWithWireType ser, Local value, Local outValueBoxed)
        {
            // inputValue may be nullable
            using (ctx.StartDebugBlockAuto(this))
            {
                ser.EmitRead(ctx, ser.RequiresOldValue ? value : null);
                if (ser.EmitReadReturnsValue)
                {
                    g.Assign(value, g.GetStackValueOperand(ser.ExpectedType));
                }

                g.Assign(outValueBoxed, value);
            }
        }