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; }
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); }