private IPHostEntry GetHostByAddress(IPAddress address) { if (fCachedLookup == null || !fCachedLookup.LookupAddress.Equals(address)) { // If name resolution fails, this will throw an exception IPHostEntry entry = Dns.GetHostEntry(address); fCachedLookup = new CachedHostLookup(address, entry); } return(fCachedLookup.Entry); }
private IPHostEntry GetHostByAddress( IPAddress address ) { if ( fCachedLookup == null || !fCachedLookup.LookupAddress.Equals( address ) ) { // If name resolution fails, this will throw an exception IPHostEntry entry = Dns.GetHostEntry( address ); fCachedLookup = new CachedHostLookup( address, entry ); } return fCachedLookup.Entry; }