我要檢索的MAC與IP地址地址...Retrive MAC與IP地址地址使用LINQ
var nics = NetworkInterface.GetAllNetworkInterfaces()
.Where(ipProp => ipProp.GetIPProperties().UnicastAddresses
.Where(ip => ip.Address.ToString().Equals("192.168.1.111"))
);
我得到一個錯誤:
"Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'bool'"
我該如何解決這個問題?
在那裏有問題嗎? :)編輯:現在有。 – 2012-01-09 13:09:56