public override int GetHashCode() { int hashExecutorEmail = Email == null ? 0 : Email.GetHashCode(); int hashExecutorId = ExecutorId.GetHashCode(); return(hashExecutorEmail ^ hashExecutorId); }
public bool Equals(Executor other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(ExecutorId.Equals(other.ExecutorId) && Email.Equals(other.Email)); }