我想检查一个对象(例如 someObject )是否可分配(可转换)到另一种类型的变量(例如 SpecifiedType )。在Java中,我可以写: someObject instanceof SpecifiedType
確定! 回上一頁