Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Habersack <grendel@twistedcode.net>2009-10-07 04:10:03 +0400
committerMarek Habersack <grendel@twistedcode.net>2009-10-07 04:10:03 +0400
commit5c59801fff62d9ecce29044470e2a5b9960cf49d (patch)
treea4229fee7f22c69b729474470e0310ce74549387 /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
parent8424d62c86996d7266ae07e12f150f5cf887eaed (diff)
Performance improvements:
- made sure invariant culture is used with String.ToLower, String.ToUpper and String.Compare - replaced all calls to CultureInfo.InvariantCulture with a reference to a static field System.Web.Util.Helpers.InvariantCulture svn path=/trunk/mcs/; revision=143587
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
index fac5b1e9bf1..6afdb8bbe65 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs
@@ -30,6 +30,7 @@ using System.ComponentModel;
using System.Collections.Specialized;
using System.Globalization;
using System.Security.Permissions;
+using System.Web.Util;
namespace System.Web.UI.HtmlControls {
@@ -65,7 +66,7 @@ namespace System.Web.UI.HtmlControls {
if (value == -1)
Attributes.Remove ("cols");
else
- Attributes ["cols"] = value.ToString (CultureInfo.InvariantCulture);
+ Attributes ["cols"] = value.ToString (Helpers.InvariantCulture);
}
}
@@ -91,7 +92,7 @@ namespace System.Web.UI.HtmlControls {
if (value == -1)
Attributes.Remove ("rows");
else
- Attributes ["rows"] = value.ToString (CultureInfo.InvariantCulture);
+ Attributes ["rows"] = value.ToString (Helpers.InvariantCulture);
}
}