|
-
Apr 19th, 2009, 08:59 AM
#20
Re: The Definitive "Passing Data Between Forms"
 Originally Posted by Pradeep1210
Though strings are reference types in .NET, they don't quite behave as such.
Instead they behave more like value types rather than reference types. They are mutable. One string can't change the contents of another string even if they are pointing to the same memory location. As soon as you try to do that, .NET will create a new memory location and make it point there.
you are correct. To be honest, I am not sure why I said that originally (was 2 years ago). Although one thing to note is strings are actually immutable, not mutable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|