system.boolean和只是布尔值有什么区别? [英] What is the difference between system.boolean and just boolean?
本文介绍了system.boolean和只是布尔值有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将变量维度化为system.boolean或者只是布尔值时有区别吗?
解决方案
bool是System.Boolean的编译器别名,int是System.Int32等,所以当你只键入bool时,它会转换为System.Boolean。
https://msdn.microsoft.com/en-us/library/ya5y69ds(VS.80)的.aspx [ ^ ]
此外,我通过谷歌搜索bool vs system.boolean,在几秒钟内找到了你的问题的答案,阅读常见问题解答,请在提问之前进行自己的基础研究。
Is there a difference when I dimension a variable as system.boolean or just as boolean?
解决方案
bool is a compiler alias of System.Boolean, int is System.Int32 etc, so when you type just "bool", it is converted to "System.Boolean".
https://msdn.microsoft.com/en-us/library/ya5y69ds(VS.80).aspx[^]
Also I found the answer to your question in seconds by googling "bool vs system.boolean", read the FAQ and please do your own basic research before asking a question.
这篇关于system.boolean和只是布尔值有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文