public override bool Equals(object obj) { var other = obj as CustomRestriction; return other?._expression == _expression; }