Unbreak the build
[mono.git] / mcs / class / System / System.Net / EndPoint.cs
index f1b0bc3b5c6a703e7706f4d0bdc0c1d6975f6a50..6e1f4483b81f77e081a120f787f4e6d6cca3c27c 100644 (file)
@@ -35,27 +35,31 @@ namespace System.Net {
        public abstract class EndPoint {
 
                // NB: These methods really do nothing but throw
-               // NotSupportedException
+               // NotImplementedException
                
                public virtual AddressFamily AddressFamily {
-                       get {
-                               throw new NotSupportedException();
-                       }
+                       get { throw NotImplemented (); }
                }
                
-               public virtual EndPoint Create (SocketAddress address)
+               public virtual EndPoint Create (SocketAddress socketAddress)
                {
-                       throw new NotSupportedException();
+                       throw NotImplemented ();
                }
 
                public virtual SocketAddress Serialize ()
                {
-                       throw new NotSupportedException();
+                       throw NotImplemented ();
                }
 
                protected EndPoint ()
                {
                }
+
+               static Exception NotImplemented ()
+               {
+                       // hide the "normal" NotImplementedException from corcompare-like tools
+                       return new NotImplementedException ();
+               }
        }
 }