可能重复:
What is the difference between these (bCondition == NULL) and (NULL==bCondition)?
我看到了两种方式的比较。是表现上的差异,还是仅仅是个人的偏好?
我在这个答案中看到了它的用法:
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
发布于 2011-08-10 15:18:34
是否存在性能差异,还是仅仅是个人偏好?
不,绝对没有表现上的差别。这只是个人喜好的问题。
https://stackoverflow.com/questions/7013263
复制相似问题