Use DynamicObject.TryInvokeMember. Remove LuaFunction class.