protected List <Contact> GetClosestNodes(ID key, KBucket bucket) #endif { return(bucket.Contacts.OrderBy(c => c.ID ^ key).ToList()); }
/// <summary> /// Get sorted list of closest nodes to the given key. /// </summary> #if DEBUG // For unit testing. public List <Contact> GetClosestNodes(ID key, KBucket bucket)