Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashExecutorEmail = Email == null ? 0 : Email.GetHashCode();

            int hashExecutorId = ExecutorId.GetHashCode();

            return(hashExecutorEmail ^ hashExecutorId);
        }
Exemplo n.º 2
0
        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));
        }