Bläddra i källkod

2006-05-18 Atsushi Enomoto <[email protected]>

        * WebConfigurationManager.cs: recent sys.config.dll changes on
          ConfigurationManager.GetSection() which should call
          GetRuntimeObject() should also apply here. Fixed monodoc web.


svn path=/trunk/mcs/; revision=60816
Atsushi Eno 19 år sedan
förälder
incheckning
feef8c7598

+ 6 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,9 @@
+2006-05-18  Atsushi Enomoto  <[email protected]>
+
+	* WebConfigurationManager.cs: recent sys.config.dll changes on
+	  ConfigurationManager.GetSection() which should call
+	  GetRuntimeObject() should also apply here. Fixed monodoc web.
+
 2006-05-10  Andrew Skiba <[email protected]>
 
 	* HttpHandlerAction.cs: keep the internal exception

+ 3 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs

@@ -233,6 +233,8 @@ namespace System.Web.Configuration {
 			return config;
 		}
 
+		static MethodInfo get_runtime_object = typeof (ConfigurationSection).GetMethod ("GetRuntimeObject", BindingFlags.NonPublic | BindingFlags.Instance);
+
 		[MonoTODO]
 		public static object GetWebApplicationSection (string sectionName)
 		{
@@ -240,7 +242,7 @@ namespace System.Web.Configuration {
 
 			ConfigurationSection section = config.GetSection (sectionName);
 
-			return section;
+			return get_runtime_object.Invoke (section, new object [0]);
 		}
 
 		public static NameValueCollection AppSettings {