示例#1
0
 public bool CompareVote(ElectorProposal e)
 {
     if (e.Vote == this.Vote)
     {
         return(true);
     }
     return(false);
 }
示例#2
0
        public override bool Equals(Object obj)
        {
            ElectorProposal ep = null;

            try
            {
                ep = (ElectorProposal)obj;
            }
            catch
            {
                return(base.Equals(obj));
            }

            if (this.IdElector == ep.IdElector &&
                this.IdProposal == ep.IdProposal)
            {
                return(true);
            }

            return(false);
        }