X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Configuration%2FConfigurationSettings.cs;h=84995699644da2e6a0c772dce44603824e96d8ca;hb=f4774442eaf92333012ae8b0a431739b4efe22bf;hp=551a263b7316ce891b72c5af8a2bbc6c23084f0b;hpb=f47e5fe6a63b6fece3e0e6c12b68f55bf474bc8b;p=mono.git diff --git a/mcs/class/System/System.Configuration/ConfigurationSettings.cs b/mcs/class/System/System.Configuration/ConfigurationSettings.cs index 551a263b731..84995699644 100644 --- a/mcs/class/System/System.Configuration/ConfigurationSettings.cs +++ b/mcs/class/System/System.Configuration/ConfigurationSettings.cs @@ -78,25 +78,21 @@ namespace System.Configuration { } -#if NET_2_0 [Obsolete ("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection")] -#endif public static object GetConfig (string sectionName) { -#if NET_2_0 && CONFIGURATION_DEP +#if CONFIGURATION_DEP return ConfigurationManager.GetSection (sectionName); #else return config.GetConfig (sectionName); #endif } -#if NET_2_0 [Obsolete ("This property is obsolete. Please use System.Configuration.ConfigurationManager.AppSettings")] -#endif public static NameValueCollection AppSettings { get { -#if NET_2_0 && CONFIGURATION_DEP +#if CONFIGURATION_DEP object appSettings = ConfigurationManager.GetSection ("appSettings"); #else object appSettings = GetConfig ("appSettings"); @@ -155,9 +151,7 @@ namespace System.Configuration return instance; } -#if NET_2_0 [Obsolete ("This method is obsolete. Please use System.Configuration.ConfigurationManager.GetConfig")] -#endif public object GetConfig (string sectionName) { Init (); @@ -662,9 +656,7 @@ namespace System.Configuration value = reader.Value; } else -#if NET_2_0 if (reader.Name != "type") -#endif ThrowException ("Unrecognized attribute.", reader); } while (reader.MoveToNextAttribute ());