In my C# application, I want to get my MAC address by using NetworkInterface class as the following:
NetworkInterface nic in NetworkInterface.Ge
Using the comment by eFloh for using BitConverter I was able to do the following (assuming mac is predefined as a string).
foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
{
mac = BitConverter.ToString(nic.GetPhysicalAddress().GetAddressBytes()).Replace('-', ':');
//Do whatever else necessary with each mac...
}