V
vaib
Hi all,
I am relatively new to .net C# and I have the following query :
What should I do if I have to make a class , say, MyMutableString ,
that takes in a String object ( any string literal ) and does
modifications ( like append, etc ) on the same memory location where
that String object is stored without making use of pointers (, ie, not
making use of any unsafe code ). So the question boils down to - How
can I possibly access the memory location where the String object is
stored without the use of unsafe code ?? If I am able to do it then
making the "MyMutableString" class won't be a hassle.
I have searched a lot for this problem and no solution seems to be in
sight. So i turn to usenet ( as always ) for help.
Thanking in anticipation.
Regards,
Vaibhav
I am relatively new to .net C# and I have the following query :
What should I do if I have to make a class , say, MyMutableString ,
that takes in a String object ( any string literal ) and does
modifications ( like append, etc ) on the same memory location where
that String object is stored without making use of pointers (, ie, not
making use of any unsafe code ). So the question boils down to - How
can I possibly access the memory location where the String object is
stored without the use of unsafe code ?? If I am able to do it then
making the "MyMutableString" class won't be a hassle.
I have searched a lot for this problem and no solution seems to be in
sight. So i turn to usenet ( as always ) for help.
Thanking in anticipation.
Regards,
Vaibhav