public VirtualEthernet(NetworkType netType, string address, EthernetDeviceType ethType) { this.netType = netType; this.address = address; this.ethType = ethType; }
public static string EthernetDeviceTypeToString(EthernetDeviceType type) { switch (type) { case EthernetDeviceType.PCnet: return "vlance"; case EthernetDeviceType.VMXnet: return "vmxnet"; case EthernetDeviceType.E1000: return "e1000"; default: return null; } }