internal static SystemNetworkInterface[] GetNetworkInterfaces() { ArrayList al = new ArrayList(); AdapterCollection ac = Networking.GetAdapters(); foreach(Adapter a in ac) { IpAdapterInfo i = new IpAdapterInfo(); i.index = (uint)a.Index; al.Add(new SystemNetworkInterface(i)); } return (SystemNetworkInterface[])al.ToArray(typeof(SystemNetworkInterface)); }
internal static SystemNetworkInterface[] GetNetworkInterfaces() { ArrayList al = new ArrayList(); AdapterCollection ac = Networking.GetAdapters(); foreach (Adapter a in ac) { IpAdapterInfo i = new IpAdapterInfo(); i.index = (uint)a.Index; al.Add(new SystemNetworkInterface(i)); } return((SystemNetworkInterface[])al.ToArray(typeof(SystemNetworkInterface))); }
private SystemNetworkInterface(IpAdapterInfo adapterInfo) { this.index = adapterInfo.index; this.interfaceProperties = new SystemIPInterfaceProperties(adapterInfo); }
public SystemIPInterfaceProperties(IpAdapterInfo adapter) { index = adapter.index; }