我有以下代码
object objectValue1 = RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(Interaction.GetObject("winmgmts:\\\\.\\root\\cimv2", (string) null)), (Type) null, "ExecQuery", new object[1]
{
(object) "Select * from WIN32_NetworkAdapterConfiguration"
}, (string[]) null, (Type[]) null, (bool[]) null));
try
{
foreach (object obj in (IEnumerable) objectValue1)
{
object objectValue2 = RuntimeHelpers.GetObjectValue(obj);
string Left;
try
{
Left = Conversions.ToString(NewLateBinding.LateGet(objectValue2, (Type) null, "MACAddress", new object[0], (string[]) null, (Type[]) null, (bool[]) null));
}
我正在尝试读出我的mac地址,但问题是我有时具有3倍的相同mac地址,有时我的ras适配器的mac地址发生了变化。 你能帮我吗?