[Mono-devel-list] Patch for System.Text.StringBuilder

Juraj Skripsky js at hotfeet.ch
Wed Mar 10 10:13:38 EST 2004


Hello,

The method StringBuilder.Insert(int, char[]) is broken since 1/22! It
always inserts the string "System.Char[]".
The attached patch fixes this.

The MS implementation of StringBuilder(int index, string value, int
count) doesn't match the ECMA spec. It throws an exception for count < 1
instead of count < 0. Which behavior do we want to implement, the ECMA
one or the stricter one to be compatible with MS? 
- Juraj


---
Juraj Skripsky <juraj at hotfeet.ch>
HotFeet - developing the web
Technopark Zurich
Switzerland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringBuilder.cs.diff
Type: text/x-patch
Size: 3366 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040310/163e097f/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringBuilderTest.cs.diff
Type: text/x-patch
Size: 1023 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040310/163e097f/attachment-0001.bin 


More information about the Mono-devel-list mailing list