public int Eval(IGame.IGame game) { //look up the variable name and return it int objId = Left.Eval(game); /* * if (objId == -1) * throw new Exception("game doesn't have an object named objName (in GetObjProp)"); * */ return(game.GetObjectProp(objId, PropName)); }