空== X和X之间的区别== NULL? [英] Difference between null == x and x == null?
本文介绍了空== X和X之间的区别== NULL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
的什么是它们的差(== NULL bCondition)和(NULL == bCondition)?
我见过的比较做了两种方式。 ?是否有性能差异还是只是个人喜好
I have seen comparisons done both ways. Is there a performance difference or is it just personal preference?
我看到它在这个答案正在使用的:
I saw it being used in this answer:
什么是你最喜欢的扩展C#的方法呢? (codeplex.com/extensionoverflow)
推荐答案
在这种情况下,它的个人喜好在C#。
In this case, its personal preference in C#.
的尤达条件语句的
这篇关于空== X和X之间的区别== NULL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文