diff options
author | John Luke <jluke@mono-cvs.ximian.com> | 2006-01-13 22:18:00 +0300 |
---|---|---|
committer | John Luke <jluke@mono-cvs.ximian.com> | 2006-01-13 22:18:00 +0300 |
commit | bc6f90e373d895a7421489772ba0848ab8f3fc1d (patch) | |
tree | 5e00b955b36f5cf79e2d7cc8f350ad85eb8ffc24 /mcs/class/System | |
parent | fc5fc0cd2bd81c17d7369e139d321027e4105fbf (diff) |
2006-01-13 John Luke <john.luke@gmail.com>
* ContentDisposition.cs: use String.Compare instead
of comparing .ToLower's
svn path=/trunk/mcs/; revision=55539
Diffstat (limited to 'mcs/class/System')
-rw-r--r-- | mcs/class/System/System.Net.Mime/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System/System.Net.Mime/ContentDisposition.cs | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mcs/class/System/System.Net.Mime/ChangeLog b/mcs/class/System/System.Net.Mime/ChangeLog index 1ee783a9a28..733cac06eda 100644 --- a/mcs/class/System/System.Net.Mime/ChangeLog +++ b/mcs/class/System/System.Net.Mime/ChangeLog @@ -1,3 +1,8 @@ +2006-01-13 John Luke <john.luke@gmail.com> + + * ContentDisposition.cs: use String.Compare instead + of comparing .ToLower's + 2006-01-02 John Luke <john.luke@gmail.com> * ContentDisposition.cs: remove [MonoTODO]'s diff --git a/mcs/class/System/System.Net.Mime/ContentDisposition.cs b/mcs/class/System/System.Net.Mime/ContentDisposition.cs index 385deb27488..a68fa9780bc 100644 --- a/mcs/class/System/System.Net.Mime/ContentDisposition.cs +++ b/mcs/class/System/System.Net.Mime/ContentDisposition.cs @@ -35,6 +35,7 @@ using System.Text; using System.Collections; using System.Collections.Specialized; +using System.Globalization; namespace System.Net.Mime { public class ContentDisposition @@ -129,7 +130,7 @@ namespace System.Net.Mime { } public bool Inline { - get { return dispositionType.ToLower () == DispositionTypeNames.Inline.ToLower (); } + get { return String.Compare (dispositionType, DispositionTypeNames.Inline, true, CultureInfo.InvariantCulture) == 0; } set { if (value) dispositionType = DispositionTypeNames.Inline; |