public static long TotalLength (KeyBlock kb_first, KeyBlock kb_last) { return kb_last.last - kb_first.first + 1; } public int CompareTo (object obj)