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); }
public Email() { Id = new EmailId(); }