Re: 'null' references
Ben Voigt [C++ MVP] <rbv@nospam.nos pamwrote:
>
Immutable reference types, like string. Copy-on-write. Various times you
need ReferenceEquals , not simply a clone, but the return value is already
used.
While I can think of some reasons why pass-by-ref of reference types is
sometimes useful, I can't make head or tail of your reply,
unfortunately. However, I suspect I could learn something if you'd be
willing to elaborate.
--
Jon Skeet - <skeet@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Ben Voigt [C++ MVP] <rbv@nospam.nos pamwrote:
Please, show me where a ref-by-ref is needed in C#/.NET
Immutable reference types, like string. Copy-on-write. Various times you
need ReferenceEquals , not simply a clone, but the return value is already
used.
sometimes useful, I can't make head or tail of your reply,
unfortunately. However, I suspect I could learn something if you'd be
willing to elaborate.
--
Jon Skeet - <skeet@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Comment