2006-01-13 John Luke <john.luke@gmail.com>
authorJohn Luke <jluke@mono-cvs.ximian.com>
Fri, 13 Jan 2006 19:18:00 +0000 (19:18 -0000)
committerJohn Luke <jluke@mono-cvs.ximian.com>
Fri, 13 Jan 2006 19:18:00 +0000 (19:18 -0000)
        * ContentDisposition.cs: use String.Compare instead
        of comparing .ToLower's

svn path=/trunk/mcs/; revision=55539

mcs/class/System/System.Net.Mime/ChangeLog
mcs/class/System/System.Net.Mime/ContentDisposition.cs

index 1ee783a9a28f1d9341f8a60b39075e581df23d3c..733cac06eda1004de9070671dd067ff036c136d0 100644 (file)
@@ -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
index 385deb27488f5df7c9e68520bb542fac699ad228..a68fa9780bc6c90c49dee487e002d8ecd36e074e 100644 (file)
@@ -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;