-
The docs simply say: roslyn/src/Compilers/Core/Portable/Operations/OperationInterfaces.xml Lines 1138 to 1142 in 214d43a but, for C# ternaries at least, it doesn't seem to be related to whether the inferred type of the expression is a reference type. I see that it was introduced in #22933 with some ref T stuff, so I'm guessing it's instead related to that.
|
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Sep 13, 2024
Replies: 1 comment
-
It's for ref ternaries. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/conditional-operator#conditional-ref-expression. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YoshiRulz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's for ref ternaries. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/conditional-operator#conditional-ref-expression.