< Datatype for Long Strings >

  • Thread starter Thread starter Carsten Kraft
  • Start date Start date
C

Carsten Kraft

Hello Newsgroup,

I am searching for a datatype which can save more than 255 characters in a
string type.
Is there a datatype like "Long String" in C#?

Thankx ...
 
? a 'string' (System.String) can hold more than 255 characters. How many
I am a bit unsure of, but it can easily hold enormous html pages in a
single string.
 
Carsten,

The standard System.String type (alias "string" in C#) can hold much more
than 255 characters. I believe it is limited only by the amount of free
memory available.
 
Apparantly it seems to be able to hold up to Int32.MaxValue characters,
around 2 billion characters.
 
Back
Top