using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Vinno.vCloud.Common.License.Licenses { //本地CPUID和MAC地址的获取 static class GetLocalInfo { ///    /// 获取本机MAC地址   ///    /// 本机MAC地址      public static string GetMacAddress() { string macAddress = string.Empty; var macList = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces(); foreach (System.Net.NetworkInformation.NetworkInterface nic in macList) { macAddress += "-" + nic.GetPhysicalAddress(); } return macAddress; } } }