public void AddLimit(params ApiLimit[] limit) { if (limit == null || !limit.Any()) { return; } Limits.AddRange(limit); Limits = Limits.OrderByDescending <ApiLimit, TimeSpan>(p => p.Time).ToList(); }
public void Merge(Config other) { RegexOptions ^= other.RegexOptions; Limits.AddRange(other.Limits); Random |= other.Random; Reverse |= other.Reverse; if (other.StringParam != null) { StringParam = other.StringParam; } if (other.RegexParam != null) { RegexParam = other.RegexParam; } }