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 !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With