Bootstrap

struct 如何判断是否为空??????????

值类型原本是不能为null的,但如果确实有需要,可以使用可空类型。用法如下:

1,定义结构体StructA;

2,声明可空类型:StructA? mSA=null;

注意问号“?”的用法

;