public bool Equals(RegexKey other) => Pattern == other.Pattern && Settings.CompareValues(other.Settings);
public bool Equals(RegexKey other) { return(Pattern == other.Pattern && Settings.CompareValues(other.Settings)); }