public virtual int CompareTo(HealthRecord other) { // не сравниваем содержимое записи if (other == null) { return(-1); } int res = Holder.CompareTo(other.Holder); if (res != 0) { return(res); } res = Ord.CompareTo(other.Ord); if (res != 0) { return(res); } res = UpdatedAt.CompareTo(other.UpdatedAt); if (res != 0) { return(res); } res = Doctor.CompareTo(other.Doctor); return(res); }
public int CompareTo([AllowNull] IRemoteRepositoryModel other) { return(other != null?UpdatedAt.CompareTo(other.UpdatedAt) : 1); }
public int CompareTo([AllowNull] IPullRequestModel other) { return(other != null?UpdatedAt.CompareTo(other.UpdatedAt) : 1); }