public override bool Equals(object obj) { if (obj is DownloadHistory history) { return(TaskKey.Equals(history.TaskKey)); } else { return(base.Equals(obj)); } }
private static TaskMainDAO GetExistingTaskDAO(TaskKey taskKey) { TaskMainDAO existedTaskMainDAO = null; taskMainDaoCollection.TryGetValue(taskKey, out existedTaskMainDAO); return existedTaskMainDAO; }
private static ITask GetExistingTask(TaskKey taskKey) { ITask existedTaskMain = null; taskMainCollection.TryGetValue(taskKey, out existedTaskMain); return existedTaskMain; }
public override int GetHashCode() => TaskKey.GetHashCode();