Unbreak the build
[mono.git] / mcs / class / System / System.Net / EndPoint.cs
old mode 100755 (executable)
new mode 100644 (file)
index f1b0bc3..6e1f448
@@ -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 ();
+               }
        }
 }