Пример #1
0
 /// <summary>
 /// Resolve address to host
 /// </summary>
 /// <param name="address"></param>
 /// <returns></returns>
 public static string Resolve(this IPAddress address)
 {
     return(address.GetHostEntry().HostName);
 }
Пример #2
0
 /// <summary>
 /// Resolve address to host
 /// </summary>
 /// <param name="address"></param>
 /// <returns></returns>
 public static string Resolve(this IPAddress address) =>
 address.GetHostEntry().HostName;