protected override int CompareResult(ListLine other) { var br = (ListLineBoulder)other; int n = br.Tops.CompareTo(this.Tops); if (n != 0) { return(n); } n = br.Bonuses.CompareTo(this.Bonuses); if (n != 0) { return(n); } n = this.TopAttempts.CompareTo(br.TopAttempts); if (n != 0) { return(n); } return(this.BonusAttempts.CompareTo(br.BonusAttempts)); }
protected abstract int CompareResult(ListLine other);
protected override int CompareResult(ListLine other) { return(this.CompareResult((ListLineSpeed)other)); }
protected override int CompareResult(ListLine other) { return(other.Result.Value.CompareTo(this.Result.Value)); }