字符串或字符串

use*_*949 8 .net c#

可能重复:
在C#中,String和string之间有什么区别

字符串和字符串之间的区别是什么.在C#中,哪个更受欢迎?

Abe*_*ler 5

实际上string是别名,System.String但是时代基本上是正确的......

以下是此帖中 Jon Skeet无可救药地提出的其他别名列表:

* object: System.Object
* string: System.String
* bool: System.Boolean
* byte: System.Byte
* sbyte: System.SByte
* short: System.Int16
* ushort: System.UInt16
* int: System.Int32
* uint: System.UInt32
* long: System.Int64
* ulong: System.UInt64
* float: System.Single
* double: System.Double
* decimal: System.Decimal
* char: System.Char
Run Code Online (Sandbox Code Playgroud)


cor*_*erm 1

string只是一个别名String——它们是相同的

编辑:类型固定

  • 我认为你实际上已经倒退了。 (4认同)