2001-12-28 Gaurav Vaish <gvaish@iitk.ac.in>
authorGaurav Vaish <gvaish@mono-cvs.ximian.com>
Fri, 28 Dec 2001 13:21:14 +0000 (13:21 -0000)
committerGaurav Vaish <gvaish@mono-cvs.ximian.com>
Fri, 28 Dec 2001 13:21:14 +0000 (13:21 -0000)
* FontUnit.cs   -- GetTypeFromString <--- Function name changed from
    IndexOf, which looked ugly. The function name is self-explanatory

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

mcs/class/System.Web/System.Web.UI.WebControls/FontUnit.cs

index 0c6fe7ab2f9c35309fa85093683be9ae41efc575..901839a04c39a6af3e8e7e126d6dd3f88d4fb70d 100644 (file)
@@ -78,7 +78,7 @@ namespace System.Web.UI.WebControls
                        if(value != null && value != String.Empty)\r
                        {\r
                                string low = value.ToLower(culture);\r
-                               int index = IndexOf(low);\r
+                               int index = GetTypeFromString(low);\r
                                if( index != -1)\r
                                {\r
                                        type = (FontSize)fs;\r
@@ -91,7 +91,7 @@ namespace System.Web.UI.WebControls
                        }\r
                }\r
                \r
-               private int IndexOf(string strVal)\r
+               private int GetTypeFromString(string strVal)\r
                {\r
                        string[] values = {\r
                                "smaller",\r