[Mono-list] bug: System.Text.StringBuilder

Lauri Kotilainen rytmis at gmail.com
Tue May 15 00:56:11 EDT 2007


On 5/14/07, Alan McGovern <alan.mcgovern at gmail.com> wrote:

> if you want that code to print out "adding a string again", change the
> method to pass stringb by ref.

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

-- 
Lauri Kotilainen
Tel: +358 44 555 2735
Email: rytmis at gmail.com


More information about the Mono-list mailing list