diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs b/mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs index 241e5403fb4..a5187d33447 100644 --- a/mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs +++ b/mcs/class/System.Web/System.Web.Configuration_2.0/GlobalizationSection.cs @@ -83,15 +83,17 @@ namespace System.Web.Configuration { void VerifyData () { + CultureInfo culture; + try { - new CultureInfo (Culture); + culture = new CultureInfo (Culture); } catch { throw new ConfigurationErrorsException ("the <globalization> tag contains an invalid value for the 'culture' attribute"); } try { - new CultureInfo (UICulture); + culture = new CultureInfo (UICulture); } catch { throw new ConfigurationErrorsException ("the <globalization> tag contains an invalid value for the 'uiCulture' attribute"); |