What is the maximum size for a string in C#? [duplicate]
Possible Duplicate:
What is the maximum possible length of a .NET string?
I need to know how many characters a string can contain in C#?
Is it the same as the max length of a char array?
String.Length is an int so the its size is 2,147,483,647
. But consider using StringBuilder if you find yourself asking this question !
精彩评论