>Please let me know if you know solution.

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
On Mar 29, 1:21 am, Mattias Sjögren <mattias.dont.want.s...@mvps.org>
wrote:
> >Please let me know if you know solution.
>
> sHash = (string)objMethodParams[0];
I thought that is a work around and I have been using it. Since
objMethodParams[0] contains reference to 'sHash'; Is it not 'sHash'
supposed to have the returned value?
My motive to post was to know why this is behaving this way.
Thanks
Ramesh
Mattias Sjögren - 30 Mar 2007 05:51 GMT
>Is it not 'sHash' supposed to have the returned value?
No. Strings in .NET are immutable so they can't change. Instead you
get a new string object back.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
asnowfall@gmail.com - 30 Mar 2007 19:21 GMT
On Mar 30, 12:51 am, Mattias Sjögren <mattias.dont.want.s...@mvps.org>
wrote:
> >Is it not 'sHash' supposed to have the returned value?
>
> No. Strings in .NET are immutable so they can't change. Instead you
> get a newstringobject back.
>
> Mattias
Thanks
Ramesh