What is the C# equivalent of this code ?
[URL]https://support.microsoft.com/en-in/help/118623/how-to-get-the-mac-address-for-an-ethernet-adapter [/URL]
IMy current code is
[code]
.OrderByDescending(n => n.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
[/code]
but it doesn't give the same address at all times.
So, the VC++ code at the above method is considered as the most reliable method to get Mac address of a machine. I have multiple adapters and I want to get the same Mac address all the time. I have written code for a software and I am now coding the licensing part of it and I want to use Mac address in my softwares licensing system and so I need to get the correct Mac address. The C# code which I showed is giving the correct address but not all the times it is same.