Hello all.
Is there something similar to this in NET?
CString s( "abcdef");
s.SetAt(1, 'a');
I am looking for a method in the String class but I do not see anything.
Thanks in anticipation.
> Hello all.
>
[quoted text clipped - 4 lines]
>
> I am looking for a method in the String class but I do not see anything.
.NET strings are immutable. This is so they can be copied by making a
second pointer to the same memory, instead of duplicating the content.
To set individual characters, use a System::Char[] instead. There is a
System::String::ToCharArray() method and overloaded String constructor to
make converting back and forth easy.
> Thanks in anticipation.
Tomas - 21 May 2007 09:25 GMT