P Palm Kevin Jul 19, 2004 #1 Is there a limit in the length/size of a string? Can a string contain for example the content of a 5Mb Text-File?
Is there a limit in the length/size of a string? Can a string contain for example the content of a 5Mb Text-File?
J Jon Skeet [C# MVP] Jul 19, 2004 #2 Palm Kevin said: Is there a limit in the length/size of a string? Can a string contain for example the content of a 5Mb Text-File? Click to expand... Very easily. In theory, the size of a string is limited to 2 "giga characters" (as above that, the Length property would be stuffed). In practice, it's going to be limited to the amount of memory (real and virtual) you have.
Palm Kevin said: Is there a limit in the length/size of a string? Can a string contain for example the content of a 5Mb Text-File? Click to expand... Very easily. In theory, the size of a string is limited to 2 "giga characters" (as above that, the Length property would be stuffed). In practice, it's going to be limited to the amount of memory (real and virtual) you have.