Windows x64 full AOT support for mono/mini regression tests.
[mono.git] / mcs / class / System / System.Net.NetworkInformation / GatewayIPAddressInformation.cs
index c6e9c07e0baa3aca8ad9bb5396cd7f5ecfc8727c..ea761a3fc41572ba8a2ef240dbeb4645d237a3f3 100644 (file)
@@ -1,10 +1,11 @@
 //
 // System.Net.NetworkInformation.GatewayIPAddressInformation
 //
-// Author:
+// Authors:
 //     Gonzalo Paniagua Javier (gonzalo@novell.com)
+//     Atsushi Enomoto (atsushi@ximian.com)
 //
-// Copyright (c) 2006 Novell, Inc. (http://www.novell.com)
+// Copyright (c) 2006-2007 Novell, Inc. (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -25,7 +26,6 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_2_0
 namespace System.Net.NetworkInformation {
        public abstract class GatewayIPAddressInformation {
                protected GatewayIPAddressInformation ()
@@ -34,6 +34,19 @@ namespace System.Net.NetworkInformation {
                
                public abstract IPAddress Address { get; }
        }
+
+       class GatewayIPAddressInformationImpl : GatewayIPAddressInformation
+       {
+               IPAddress address;
+
+               public GatewayIPAddressInformationImpl (IPAddress address)
+               {
+                       this.address = address;
+               }
+               
+               public override IPAddress Address {
+                       get { return address; }
+               }
+       }
 }
-#endif