<分区>
Possible Duplicate:
What is the difference between these (bCondition == NULL) and (NULL==bCondition)?
我看到过两种方式的比较。是否存在性能差异或仅仅是个人偏好?
我看到它被用在这个答案中:
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
标签 c#
<分区>
Possible Duplicate:
What is the difference between these (bCondition == NULL) and (NULL==bCondition)?
我看到过两种方式的比较。是否存在性能差异或仅仅是个人偏好?
我看到它被用在这个答案中:
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
最佳答案
在这种情况下,它在 C# 中的个人偏好。
尤达条件句
关于c# - null == x 和 x == null 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7013263/