Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Nullable value types aren't supported in navigation parameters #43

Closed
BurkusCat opened this issue Oct 23, 2023 · 0 comments · Fixed by #44
Closed

[Bug] Nullable value types aren't supported in navigation parameters #43

BurkusCat opened this issue Oct 23, 2023 · 0 comments · Fixed by #44
Labels
bug Something isn't working

Comments

@BurkusCat
Copy link
Owner

Describe the bug
You can't use GetValue<char?> without getting an exception

To Reproduce
Steps to reproduce the behavior:

  1. Add code such as:
var test = parameters.GetValue<char?>("test");
  1. Observe exception
System.ArgumentException : Cannot convert parameter value to type System.Nullable`1[System.Char]
---- System.InvalidCastException : Null object cannot be converted to a value type.

Expected behavior
The framework supports passing nullable value types.

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 a pull request may close this issue.

1 participant