Skip to content

refactor: use System.Convert where applicable in group code value conversion#1043

Merged
DomCR merged 1 commit intoDomCR:masterfrom
gherards99:refactor/xdata-system-convert
Apr 27, 2026
Merged

refactor: use System.Convert where applicable in group code value conversion#1043
DomCR merged 1 commit intoDomCR:masterfrom
gherards99:refactor/xdata-system-convert

Conversation

@gherards99
Copy link
Copy Markdown
Contributor

@gherards99 gherards99 commented Apr 24, 2026

Description

This PR normalizes value conversion by using System.Convert where applicable, while preserving the original switch order and formatting.
When calling SetDimensionOverride(), some override style values caused issues because explicit casts were not always valid.
For example, ArrowHead.SeparateBlocks raised an error because an Int16 was expected, while the provided value was correctly a bool.
I tested these changes with my use cases, and everything worked as expected.

Tasks done in this PR

  • Something awesome.
  • An evil bug have been defeated.
  • Code cleanup and maintenance has been done.

…version

This PR normalizes value conversion by using `System.Convert` where applicable,
while preserving the original switch order and formatting.
@DomCR DomCR added code refactoring Improvements in the existing code bug Something isn't working and removed code refactoring Improvements in the existing code labels Apr 27, 2026
Copy link
Copy Markdown
Owner

@DomCR DomCR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one!

@DomCR DomCR merged commit f016eb8 into DomCR:master Apr 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants