Exemple #1
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            if (obj.GetType() != typeof(EmailId))
            {
                return(false);
            }

            EmailId recievedObject = (EmailId)obj;

            if ((Aktivista.Id == recievedObject.Aktivista.Id) &&
                (Email == recievedObject.Email))
            {
                return(true);
            }

            return(false);
        }
Exemple #2
0
 public Email()
 {
     Id = new EmailId();
 }