This question already has answers here:
What is the difference between bool and Boolean types in C#
                                
                                    (14个回答)
                                
                        
                        
                            What is the difference between String and string in C#?
                                
                                    (65个答案)
                                
                        
                                6年前关闭。
            
                    
Visual Studio显示了两个有关布尔类型的内容:

Booleanbool

对于双精度类型:

Doubledouble

为什么这样?两种颜色不同,它们都一样吗?有什么不同?

最佳答案

他们是一样的。如果将鼠标悬停在小写字母上,则表明它是大写字母的别名。

请注意,按照惯例,您应始终使用小写版本

关于c# - C#中的 bool 值和 bool 值之间的区别? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19583876/

10-13 22:26