diff options
author | Marek Habersack <grendel@twistedcode.net> | 2009-10-07 04:10:03 +0400 |
---|---|---|
committer | Marek Habersack <grendel@twistedcode.net> | 2009-10-07 04:10:03 +0400 |
commit | 5c59801fff62d9ecce29044470e2a5b9960cf49d (patch) | |
tree | a4229fee7f22c69b729474470e0310ce74549387 /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTextArea.cs | |
parent | 8424d62c86996d7266ae07e12f150f5cf887eaed (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.cs | 5 |
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); } } |