What is the difference between String and string in C#?

后端 未结 30 4663
走了就别回头了
走了就别回头了 2020-11-21 04:35

Example (note the case):

string s = \"Hello world!\";
String s = \"Hello world!\";

What are

30条回答
  •  耶瑟儿~
    2020-11-21 05:27

    String is not a keyword and it can be used as Identifier whereas string is a keyword and cannot be used as Identifier. And in function point of view both are same.

提交回复
热议问题