我知道,在.net所有32位类型(如int,bool等)是线程安全的.也就是说,不会有部分写入(根据规范).
int
bool
但是,同样适用于int?(可空的int)吗?
int?
.net c# int thread-safety
.net ×1
c# ×1
int ×1
thread-safety ×1