Copy from 72246 to trunk
[mono.git] / mcs / class / System.Configuration / System.Configuration / ConfigurationErrorsException.cs
index bd4d5bd9dfa203322e31e12c545c20927e88d6bf..3047146faaa1c1437c6332f26665f521751466fe 100644 (file)
@@ -29,6 +29,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+
 using System;
 using System.Globalization;
 using System.Runtime.Serialization;
@@ -104,7 +106,7 @@ namespace System.Configuration
                //
                // Properties
                //
-               public new string BareMessage
+               public override string BareMessage
                {
                        get  { return bareMessage; }
                }
@@ -114,12 +116,12 @@ namespace System.Configuration
                        get { throw new NotImplementedException (); }
                }
 
-               public new string Filename
+               public override string Filename
                {
                        get { return filename; }
                }
                
-               public new int Line
+               public override int Line
                {
                        get { return line; }
                }
@@ -182,3 +184,5 @@ namespace System.Configuration
        }
 #pragma warning restore
 }
+
+#endif