Skip to content

Fixes 3857: Remove protected setter from InputPropertes#3880

Merged
rockfordlhotka merged 1 commit into
mainfrom
dev/3857-remove-protected-setter
Apr 25, 2024
Merged

Fixes 3857: Remove protected setter from InputPropertes#3880
rockfordlhotka merged 1 commit into
mainfrom
dev/3857-remove-protected-setter

Conversation

@StefanOssendorf

@StefanOssendorf StefanOssendorf commented Apr 25, 2024

Copy link
Copy Markdown
Contributor
  • Remove protected set from InputProperties.
  • Fix the breaking change
  • Some code cleanup (namespace, nameof() instead of magic strings)

Fixes #3857

For discussion: Would it be better to change the List to HashSet since a property should only be once within the lists? Having a property multiple times in e.g. InputProperties will result in an exception due to the usage of Dictionary.Add which will throw when a duplicate key is added. And the affected properties are made to be unique with Distinct() which could also be discarded if changed to HashSet.

Fix the breaking change
Some code cleanup (namespace, nameof() instead of magic strings)
@rockfordlhotka

Copy link
Copy Markdown
Member

@StefanOssendorf

iirc, HashSet is maybe faster, but consumes more memory than a List. I'd want to know the consequences before making such a change.

@rockfordlhotka rockfordlhotka merged commit 8eb6cea into main Apr 25, 2024
@rockfordlhotka rockfordlhotka deleted the dev/3857-remove-protected-setter branch April 25, 2024 21:43
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove protected setter in BusinessRuleBase from InputProperties

2 participants