<> 运算符在 VB.net 中是什么意思
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9772247/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what does the <> operator mean in VB.net
提问by bernie2436
I'm looking at some legacy code that says
我在看一些遗留代码,上面写着
If OBRString <> "^^" then
What does the <>
operator mean?
什么是<>
运营商意味着什么?
回答by LarsTech
It means "does not equal".
意思是“不等于”。
Equivalent c# operator is !=
等效的 c# 运算符是 !=
回答by Ahmad Mageed
It checks for inequality, so here it checks whether OBRString
is not equal to "^^"
.
它检查不等式,所以这里检查是否OBRString
不等于"^^"
。
回答by Edward Karak
It determines whether two objects are NOT equal.
它确定两个对象是否不相等。
回答by Mani
<> in VB.NET means "not equal to". It can be used with the normal oprands as well as in comparision with the items when compared with the datas fetched with the data reader (from database).
<> 在 VB.NET 中的意思是“不等于”。当与使用数据读取器(从数据库)获取的数据进行比较时,它可以与普通操作数一起使用,也可以与项目进行比较。
回答by gbianchi
distinct.. but you should have probably google that!or not equal if you like better...
不同的..但你可能应该用谷歌搜索!或者如果你喜欢更好的话就不相等......