Ejemplo n.º 1
0
 public HeyRememberDto(HeyRememberDto other)
 {
     Domain = other.Domain;
     Type   = other.Type;
     Name   = other.Name;
     Id     = other.Id;
     When   = new DateTime[other.When.Length];
     other.When.CopyTo(When, 0);
     DomainSpecificData = other.DomainSpecificData;
     CronExpression     = other.CronExpression;
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            HeyRememberDto o = (HeyRememberDto)obj;

            return(o.Domain == Domain &&
                   o.Type == Type &&
                   o.Name == Name &&
                   o.Id == Id &&
                   o.When.SequenceEqual(When) &&
                   o.DomainSpecificData == DomainSpecificData &&
                   o.CronExpression == CronExpression);
        }