
Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Thank you Mattias, that's what I suspected. So any garbage collection savings I might gain in my example would be the ValueType instance itself?
JL
"Mattias Sjögren" wrote:
> John,
>
> Strings, being reference types, are always heap allocated. From where
> you reference those strings doesn't matter.
>
> Mattias
Jon Skeet [C# MVP] - 21 Jun 2004 08:33 GMT
> Thank you Mattias, that's what I suspected. So any garbage collection
> savings I might gain in my example would be the ValueType instance
> itself?
Yes. And that would only be on the stack if it were a local variable.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too