Skip to content

Update ValuesUtilities.GetValuesFor to support all primitives#156

Open
John-Leitch wants to merge 1 commit intoAArnott:mainfrom
John-Leitch:feature/primitive-support
Open

Update ValuesUtilities.GetValuesFor to support all primitives#156
John-Leitch wants to merge 1 commit intoAArnott:mainfrom
John-Leitch:feature/primitive-support

Conversation

@John-Leitch
Copy link

This PR addresses the issue described in #155. Rather than checking for specific types, a more generalized solution was achieved by checking Type.IsPrimitive and then using Convert.ChangeType to return 0 and 1. This works with not only bool and int, but all primitives, such as sbyte and double.

@John-Leitch John-Leitch changed the title Updated ValuesUtilities.GetValuesFor to support all primitives. Update ValuesUtilities.GetValuesFor to support all primitives Feb 10, 2026
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