public int CompareTo(object o) { PdfCrossReference other = (PdfCrossReference)o; return (refnum < other.refnum ? -1 : (refnum==other.refnum ? 0 : 1)); }