Fixed StringBuilder.Clear() to properly clear the cached string.
[mono.git] / mcs / class / corlib / System.Text / StringBuilder.cs
index ac10d1706671e4d5a5811edd5d2ea7ecfd598bed..8452b168d76522bb6aa40b0a0651be030cdf8e89 100644 (file)
@@ -506,7 +506,7 @@ namespace System.Text {
 #if NET_4_0 || MOONLIGHT || MOBILE
                public StringBuilder Clear ()
                {
-                       _length = 0;
+                       Length = 0;
                        return this;
                }
 #endif