[ci] Move setting CFLAGS and MONO_CHECK_MODE into the run-jenkins.sh script
[mono.git] / mcs / class / referencesource / System / net / System / Net / NetworkInformation / SystemGatewayIPAddressInformation.cs
1
2 using System;
3
4 namespace System.Net.NetworkInformation
5 {
6            
7     /// Provides information about a network interface address.
8     internal class SystemGatewayIPAddressInformation:GatewayIPAddressInformation
9     {
10         IPAddress address;
11
12         private SystemGatewayIPAddressInformation(IPAddress address){
13             this.address = address;
14         }
15
16         /// Gets the Internet Protocol (IP) address.
17         public override IPAddress Address { 
18             get{
19                 return address;
20             }
21         }
22
23         internal static GatewayIPAddressInformationCollection ToGatewayIpAddressInformationCollection(IPAddressCollection addresses) {
24             GatewayIPAddressInformationCollection gatewayList = new GatewayIPAddressInformationCollection();
25             foreach (IPAddress address in addresses) {
26                 gatewayList.InternalAdd(new SystemGatewayIPAddressInformation(address));
27             }
28             return gatewayList;
29         }
30     }
31 }
32