摘要: C#获取MAC地址 阅读全文
posted @ 2016-12-21 22:03 紫星131 阅读(4856) 评论(0) 推荐(0)
摘要: /// /// 获取MAC地址(返回第一个物理以太网卡的mac地址) /// /// 成功返回mac地址,失败返回null public string getMacAddress() { string macAddress = null; try { NetworkInterface[] nics = NetworkInterface.Get... 阅读全文
posted @ 2016-12-21 22:02 紫星131 阅读(122) 评论(0) 推荐(0)