public int CompareTo(Key other) { int result = Timeout.CompareTo(other.Timeout); if (result == 0) { result = Item.CompareTo(other.Item); } return(result); }