记录一次奇怪的报错。 error CS1031: Type expected

 

 

 

 

 

上述是在api接口中的一段代码,当我使用is null 时编译会报错, 但是软件并未识别到代码的错误,没有标记红色。

报错情况:error CS1031: Type expected。

把 is null 改成 == null 就正常通过了,有点坑。

 

posted @ 2022-10-10 11:21  中情局007  阅读(214)  评论(0)    收藏  举报