首页 > Windows开发 > 详细

C# string 与 String的区别

时间:2019-02-07 16:25:07      阅读:180      评论:0      收藏:0      [点我收藏+]

The string type represents a string of Unicode characters.

string is an alias for System.String in the .NET Framework.  

string is a reference type,object is a reference type too, and the others are value types.

string是C#的保留字,而String是CLR(Common Language Runtime)的类型.

 

技术分享图片
int x = 5;
Console.Write(x.GetType());//System.Int32
Console.ReadLine();
查看类型代码

 

C# string 与 String的区别

原文:https://www.cnblogs.com/GoldenEllipsis/p/10354883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!