Merge pull request #2916 from ludovic-henry/fix-40306
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / SystemWebSectionGroup.cs
index a076c4e1c69f0c0a3b7ede5f3bf0a1bcaf49091e..4492ffb0cc5e9e70845af43cd57a675f40ee32fe 100644 (file)
@@ -28,7 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System;
 using System.Configuration;
@@ -65,12 +64,10 @@ namespace System.Web.Configuration
                        get { return (ClientTargetSection)Sections ["clientTarget"]; }
                }
 
-#if !TARGET_JVM
                [ConfigurationProperty ("compilation")]
                public CompilationSection Compilation {
                        get { return (CompilationSection)Sections ["compilation"]; }
                }
-#endif
 
                [ConfigurationProperty ("customErrors")]
                public CustomErrorsSection CustomErrors {
@@ -138,6 +135,7 @@ namespace System.Web.Configuration
                }
 
                [ConfigurationProperty ("mobileControls")]
+               [Obsolete ("System.Web.Mobile.dll is obsolete.")]
                public ConfigurationSection MobileControls {
                        get { return Sections ["MobileControls"]; }
                }
@@ -221,4 +219,3 @@ namespace System.Web.Configuration
        }
 }
 
-#endif