1
0

Equals override

This commit is contained in:
glax 2024-02-27 22:20:03 +01:00
parent b7a4c263e7
commit 976cd03623

View File

@ -79,4 +79,9 @@ public abstract class Job : IComparable
throw new ArgumentException("Type can not be compared", nameof(obj));
return TimeToNextExecution().CompareTo(other.TimeToNextExecution());
}
public override bool Equals(object? obj)
{
return obj is Job other && other.JobId.Equals(this.JobId);
}
}