[Mono-list] bug: System.Text.StringBuilder
Alan McGovern
alan.mcgovern at gmail.com
Tue May 15 02:44:54 EDT 2007
> That only applies to value types. StringBuilder is a reference type,
> so the code in question should not return an empty string. Either
> that, or I need to re-learn some C# :p
You need to relearn some C# ;) He's allocating a new class in his method,
therefore he needs to pass by ref if he wants to affect the original one.
Alan.
--
> Lauri Kotilainen
> Tel: +358 44 555 2735
> Email: rytmis at gmail.com
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070515/ef1a6524/attachment.html
More information about the Mono-list
mailing list