Skip to content

Enhance single-property handling in Executor class#19

Merged
GregoryNikolaishvili merged 1 commit into
mainfrom
bugfix/OnlyProperty
Jun 1, 2026
Merged

Enhance single-property handling in Executor class#19
GregoryNikolaishvili merged 1 commit into
mainfrom
bugfix/OnlyProperty

Conversation

@GregoryNikolaishvili

Copy link
Copy Markdown
Contributor

Updated Executor to optimize handling of single-property cases:

  • Adjusted private field generation and property setters.
  • Updated ShouldSerialize to return true for single-property cases.
  • Improved ProcessMatch and ProcessSwitch methods.

Renamed SinglePropertyChoice to SinglePropertyStringChoice and updated related tests. Added new classes SinglePropertyDateOnlyChoice and SinglePropertyIntChoice with required Value properties.

Incremented Version in Directory.Build.props to 2.1.4.

Updated `Executor` to optimize handling of single-property cases:
- Adjusted private field generation and property setters.
- Updated `ShouldSerialize` to return `true` for single-property cases.
- Improved `ProcessMatch` and `ProcessSwitch` methods.

Renamed `SinglePropertyChoice` to `SinglePropertyStringChoice` and updated related tests. Added new classes `SinglePropertyDateOnlyChoice` and `SinglePropertyIntChoice` with required `Value` properties.

Incremented `Version` in `Directory.Build.props` to `2.1.4`.
@GregoryNikolaishvili GregoryNikolaishvili merged commit c803127 into main Jun 1, 2026
1 check passed
@GregoryNikolaishvili GregoryNikolaishvili deleted the bugfix/OnlyProperty branch June 1, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant