New tests.
[mono.git] / mcs / class / System / System.Net / Dns.cs
index 34e8d41436e6ea2903a278a7a1076ba13ffa12c5..15a17be550041196a7c988ed5845394c24d3ca08 100644 (file)
@@ -48,7 +48,7 @@ namespace System.Net {
                        System.Net.Sockets.Socket.CheckProtocolSupport();
                }
 
-#if !NET_2_1 // global remove of async methods
+#if !MOONLIGHT // global remove of async methods
 
                private delegate IPHostEntry GetHostByNameCallback (string hostName);
                private delegate IPHostEntry ResolveCallback (string hostName);
@@ -177,7 +177,7 @@ namespace System.Net {
                }
 #endif
                
-#endif // !NET_2_1: global remove of async methods
+#endif // !MOONLIGHT: global remove of async methods
 
 #if !TARGET_JVM
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
@@ -285,7 +285,11 @@ namespace System.Net {
                }
 
 #if NET_2_0
-               public static IPHostEntry GetHostEntry (string hostNameOrAddress)
+               public
+#else
+               internal
+#endif
+               static IPHostEntry GetHostEntry (string hostNameOrAddress)
                {
                        if (hostNameOrAddress == null)
                                throw new ArgumentNullException ("hostNameOrAddress");
@@ -302,7 +306,12 @@ namespace System.Net {
                        return GetHostByName (hostNameOrAddress);
                }
 
-               public static IPHostEntry GetHostEntry (IPAddress address)
+#if NET_2_0
+               public
+#else
+               internal
+#endif
+               static IPHostEntry GetHostEntry (IPAddress address)
                {
                        if (address == null)
                                throw new ArgumentNullException ("address");
@@ -310,7 +319,12 @@ namespace System.Net {
                        return GetHostByAddressFromString (address.ToString (), false);
                }
 
-               public static IPAddress [] GetHostAddresses (string hostNameOrAddress)
+#if NET_2_0
+               public
+#else
+               internal
+#endif
+               static IPAddress [] GetHostAddresses (string hostNameOrAddress)
                {
                        if (hostNameOrAddress == null)
                                throw new ArgumentNullException ("hostNameOrAddress");
@@ -327,7 +341,6 @@ namespace System.Net {
 
                        return GetHostEntry (hostNameOrAddress).AddressList;
                }
-#endif
 
 #if NET_2_0
                [Obsolete ("Use GetHostEntry instead")]