Should I prefer string or String in C# or is it execlty the same? [duplicate]
Possible Duplicate:
String vs string in C#
Hello,
Should I prefer string or String in C# or is it execl开发者_高级运维ty the same?
string is an alias of String..
Both create same IL
Demonstration
string sTest;
IL Creates
IL_0000: ret
String sTest;
IL Creates
IL_0000: ret
Its already asked so many times
string is an alias System.String, they are the same. However, I would advise you to choose one and stick with it, so other people have an easier read.
加载中,请稍侯......
精彩评论