布尔 [英] Bool
本文介绍了布尔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能将Bool(VB)翻译成c#?
谢谢
Hi,
How could i translate Bool(VB) into c#?
Thanks
推荐答案
bool x =(bool)(表达);
然而你不应该因为表达式将评估为真或
false,所以;
bool x =表达
通常就足够了。如果你想转真或假变成一个bool;
bool x = bool.Parse(boolString)
" rcoco" < nc ****** @ yahoo.cawrote in message
news:11 ********************* @ e65g2000hsc。 googlegro ups.com ...
bool x = (bool) ( expression );
However you shouldn''t have to as the expression will evaluate to true or
false, so;
bool x = expression
is usually enough. If you want to turn "True" or "False" into a bool;
bool x = bool.Parse(boolString)
"rcoco" <nc******@yahoo.cawrote in message
news:11*********************@e65g2000hsc.googlegro ups.com...
我怎样才能将Bool(VB)翻译成c#?
谢谢
Hi,
How could i translate Bool(VB) into c#?
Thanks
3月19日上午10点09分,Aidy < a ... @ noemail.xxxa.comwrote:
On Mar 19, 10:09 am, "Aidy" <a...@noemail.xxxa.comwrote:
bool x =(bool)(表达);
然而你不应该因为表达式将评估为真或
false,所以;
bool x =表达
通常就足够了。如果你想转真或假变成一个bool;
bool x = bool.Parse(boolString)
" rcoco" < nclau ... @ yahoo.cawrote in message
news:11 ********************* @ e65g2000hsc .googlegro ups.com ...
bool x = (bool) ( expression );
However you shouldn''t have to as the expression will evaluate to true or
false, so;
bool x = expression
is usually enough. If you want to turn "True" or "False" into a bool;
bool x = bool.Parse(boolString)
"rcoco" <nclau...@yahoo.cawrote in message
news:11*********************@e65g2000hsc.googlegro ups.com...
我怎样才能将Bool(VB)翻译成c#?
谢谢 - 隐藏引用的文字 -
Hi,
How could i translate Bool(VB) into c#?
Thanks- Hide quoted text -
- 显示引用的文字 -
- Show quoted text -
如果你有,在VB中:
Dim x As Boolean
然后,在C#中:
bool x;
你可以默认通过:
bool x = true;
请记住,C#区分大小写。
If you have, in VB:
Dim x As Boolean
then, in C#:
bool x;
You can default by:
bool x = true;
Keep in mind, C# is case-sensitive.
谢谢,
我已经改变了我已经看到我实际上可以使用设置Windows
身份验证但是当我插入数据时出现错误
无法将值NULL插入列''Name'',表格
''IS_dashboard.dbo.DashBoard'';列不允许空值。 INSERT
失败。该声明已被终止。
可能是什么问题?
Thanks,
I have Changed I''ve seen that I can actually use Set Up Windows
Authentication but When I insert data I get an error
Cannot insert the value NULL into column ''Name'', table
''IS_dashboard.dbo.DashBoard''; column does not allow nulls. INSERT
fails. The statement has been terminated.
What could be the problem?
这篇关于布尔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文