Skip to content

Handle enum types in ConfigurationReader value parsing#1235

Merged
StuartFerguson merged 1 commit intomasterfrom
task/#1234_getvalueordefault_handle_enums
Feb 26, 2026
Merged

Handle enum types in ConfigurationReader value parsing#1235
StuartFerguson merged 1 commit intomasterfrom
task/#1234_getvalueordefault_handle_enums

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Updated ConfigurationReader to support parsing enum values from configuration strings using Enum.Parse with case-insensitive matching. This ensures correct conversion for enum types, which are not handled by Convert.ChangeType.

closes #1234

Updated ConfigurationReader to support parsing enum values from configuration strings using Enum.Parse with case-insensitive matching. This ensures correct conversion for enum types, which are not handled by Convert.ChangeType.
@StuartFerguson StuartFerguson added the task Tasks and work items label Feb 26, 2026
@StuartFerguson StuartFerguson merged commit 60aed32 into master Feb 26, 2026
9 of 10 checks passed
@github-actions github-actions Bot deleted the task/#1234_getvalueordefault_handle_enums branch April 28, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

task Tasks and work items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GetValueOrDefault<T> needs to handle enum types

1 participant