public CompletionEvent()
 {
     Selections         = Lists.NewList <IProposalSelection>();
     ProposalCollection = new ProposalCollection();
     Context2           = new Context();
     TerminatedState    = TerminationState.Unknown;
     ProposalCount      = 0;
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ Context2.GetHashCode();
         hashCode = (hashCode * 397) ^ ProposalCollection.GetHashCode();
         hashCode = (hashCode * 397) ^ Selections.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)TerminatedBy;
         hashCode = (hashCode * 397) ^ (int)TerminatedState;
         return(hashCode);
     }
 }
Esempio n. 3
0
 private bool Equals(ProposalCollection other)
 {
     return(Proposals.SequenceEqual(other.Proposals));
 }