I want to access the friendly name of network devices in C# using the SharpPCap library. I get a list of devices with CaptureDeviceList deviceList = CaptureDeviceList.Instance;
and loop through it with a foreach to access each one:
foreach (ICaptureDevice device in deviceList)
{
Console.WriteLine($"{device.Name}--{device.Description}");
}
The PCapInterface seemed to contain the FriendlyName
property so I tried casting it to that type but it did not work and returned a null
value.