[Mono-list] Patch for String.Replace

John BouAntoun jbouantoun@rogen.com.au
Mon, 18 Aug 2003 15:40:12 +1000

That test case returns 0 on .net 1.1 windows


-----Original Message-----
From: Jackson Harper [mailto:jackson@latitudegeo.com]
Sent: Tuesday, 19 August 2003 1:31 AM
To: mono list
Subject: [Mono-list] Patch for String.Replace


	Attached is a patch that changes the behavoir of String.Replace. If the
replace method does not alter the string at all it returns a reference
to the unaltered string. I have been told on #mono that this is what is
happening on MS. Would be great if some more people can confirm this.

	I've also attached a test case that I will integrate into the unit
tests if someone can confirm that this is the same behavoir as MS.