public override void Execute(Stack s) { if (_t == typeof(Int64)) { Int64 i1 = Convert.ToInt64(s.Pop().Value); Int64 i2 = Convert.ToInt64(s.Pop().Value); s.Push(_t, i1 + i2); } else if (_t == typeof(Int32)) { Int32 i1 = Convert.ToInt32(s.Pop().Value); Int32 i2 = Convert.ToInt32(s.Pop().Value); s.Push(_t, i1 + i2); } else if (_t == typeof(Int16)) { Int16 i1 = Convert.ToInt16(s.Pop().Value); Int16 i2 = Convert.ToInt16(s.Pop().Value); s.Push(_t, i1 + i2); } }
public override void Execute(Stack s) { s.Push(_t, _value); }