标签:ica nice c# return orm pre interface ice ring
using System.Net.NetworkInformation; public string GetMacAddress() { string physicalAddress = ""; NetworkInterface[] nice = NetworkInterface.GetAllNetworkInterfaces(); foreach (NetworkInterface adaper in nice) { if (adaper.Description == "en0") { physicalAddress = adaper.GetPhysicalAddress().ToString(); break; } else { physicalAddress = adaper.GetPhysicalAddress().ToString(); if (physicalAddress != "") { break; }; } } return physicalAddress; }
标签:ica nice c# return orm pre interface ice ring
原文地址:http://www.cnblogs.com/htwzl/p/7351804.html