-
Notifications
You must be signed in to change notification settings - Fork 75
Implemented support for optional properties usage in non-Enumerable LINQ queries #529
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
Conversation
6194694
to
18d8dac
Compare
18d8dac
to
88ad982
Compare
else | ||
let t = value.GetType() | ||
if t.FullName.StartsWith ReflectionHelper.OptionTypeName then | ||
let p = t.GetProperty("Value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why isn't there a test for if the value is a None
like in the ValueOption
case (ValueNone
)? I mean:
if value = Activator.CreateInstance t then None
?
Is it intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a check for ValueOption.None
. As it is a value type it's instance is empty struct
No description provided.