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

ToContextualType().Nullability doesn't work for reference types (at all?) #160

Open
tsemer opened this issue Jan 2, 2025 · 0 comments
Open

Comments

@tsemer
Copy link

tsemer commented Jan 2, 2025

I must be missing a major concept of ToContextualType().Nullability, as I cannot seem to get it to work for nullable reference types - only value types seem to be respected.

image

This defeats the purpose of it existing in the first place.

My project is targeting net8.0.

Tested using Namotion.Reflection versions 3.2.0 and 3.1.1.

What am I missing?

@tsemer tsemer changed the title ToContextualType().Nullability doesn't ToContextualType().Nullability doesn't work for reference types (at all?) Jan 5, 2025
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

No branches or pull requests

1 participant