找到与下面语法相反的内容 [英] Find the opposite of the syntax below
本文介绍了找到与下面语法相反的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if(string.IsNullOrEmpty(SqlCmd.Parameters [@ ERESPONSE4]。Value.ToString()));
与 IsNullOrEmpty相反
需要相反的
我的尝试:
一般请求,检查我的代码是否有相似的语法
解决方案
! string.IsNullOrEmpty
!运营商(C#参考)
逻辑否定运算符(!)是一个否定其操作数的一元运算符。它是为bool定义的,当且仅当其操作数为假时才返回true。
- !运算符(C#参考)| Microsoft Docs [ ^ ]
这没有意义。
if ( string .IsNullOrEmpty(SqlCmd.Parameters [ @ ERESPONSE4]。Value.ToString()));
但与
< pre lang =c#> if (IsNullOrEmpty(SqlCmd.Parameters [ @ ERESPONSE4]。价值));
是
< span class =code-keyword> if (!IsNullOrEmpty(SqlCmd.Parameters [ @ ERESPONSE4 跨度>]值));
if (string.IsNullOrEmpty(SqlCmd.Parameters["@ERESPONSE4"].Value.ToString()));
The opposite of IsNullOrEmpty
Need the opposite of
What I have tried:
General request on the fly , checked my codes for similar syntax
解决方案
! string.IsNullOrEmpty
"
! Operator (C# Reference)
The logical negation operator (!) is a unary operator that negates its operand. It is defined for bool and returns true if and only if its operand is false.
" -- ! Operator (C# Reference) | Microsoft Docs[^]
This makes no sense.
if (string.IsNullOrEmpty(SqlCmd.Parameters["@ERESPONSE4"].Value.ToString()));
but the opposite of
if (IsNullOrEmpty(SqlCmd.Parameters["@ERESPONSE4"].Value));
is
if (! IsNullOrEmpty(SqlCmd.Parameters["@ERESPONSE4"].Value));
这篇关于找到与下面语法相反的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文