초기 커밋.

This commit is contained in:
2025-02-03 11:02:48 +09:00
parent a7d46f415f
commit fe9aa0799f
2334 changed files with 674826 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
namespace JWH
{
public static class ExtensionNetwork
{
/// <summary>
/// Get PhysicalAddress (MAC Address)
/// </summary>
/// <returns></returns>
public static string GetPhysicalAddress()
{
List<NetworkInterface> list = new List<NetworkInterface>();
foreach(NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
{
if (nic.OperationalStatus == OperationalStatus.Up)
list.Add(nic);
}
return list[0].GetPhysicalAddress().ToString();
}
}
}