TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Okada Okada
NA
19
2.9k
What is the C# equivalent of this code ?
Jul 9 2018 10:09 PM
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.
Reply
Answers (
4
)
how we retain dropdwon value after page refresh in asp.net
PayTm integrate in asp.net web forms C# Sample code