hai friends ? I am almost completing my C#.net.. but a small doubt is whether "string " data type is a reference type or value type? because in some books i find it as reference type and in some books i find it as value type which can store upto 4GB? which one is correct? one more is thing canwe run MS.NET in LINUX operating system? if yes which web server we had to use
BhuvanRam
0
Newbie Poster
Recommended Answers
Jump to PostWhilst a string may often behave like a value type it is in fact an Immutable Reference type. Some extra behaviours (such as value comparisons and value reassignments) have been added for convenience but they are still a reference type at the core...thats why string.Replace() doesnt affect the string but …
Jump to PostStrings in C# are reference types, as indicated by the C# Reference on MSDN.
Maximum string length will depend on your machine's architecture and memory allocation situation, but the
All 8 Replies
Geekitygeek
480
Nearly a Posting Virtuoso
gusano79
247
Posting Shark
Ketsuekiame
commented:
Good answer
+1
gusano79
247
Posting Shark
Geekitygeek
480
Nearly a Posting Virtuoso
BhuvanRam
0
Newbie Poster
gusano79
247
Posting Shark
Geekitygeek
480
Nearly a Posting Virtuoso
gusano79
247
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.