Linq: Adds support constant evaluation of Nullable<T>.HasValue#3273
Linq: Adds support constant evaluation of Nullable<T>.HasValue#3273ealsur merged 11 commits intoAzure:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@khdang Please take a look |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@ccurrens It looks like the last commit is failing on the |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Thanks for the heads up. I messed up the conversion of the first pattern expression back to what it needed to be. I'll post up the fix in just a minute.
|
Head branch was pushed to by a user without write access
|
The property pattern for |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Description
This commit adds support for evaluating
Nullable<T>.HasValuewhen the original nullable constant'sHasValueis false.Nullable<T>is tricky to use with reflection because of it's special runtime behavior. This manually determines ifHasValuewas false, and in that case returns a constant expression offalse.More details are in #3272.
Type of change
Closing issues
closes #3272