예제 #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;