You should always restore the object that you replaced in the device context. 你只要在設備環(huán)境中替換了某一對象,你都應該恢復它。
A callback function cannot be a method because the host does not have an object to call the method with. 一個(gè)回調方法不能是一個(gè)單獨的方法,因為調用者不能通過(guò)某一對象來(lái)調用它。