Skip to content
Discussion options

You must be logged in to vote

Seems it's explained here: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.2/conditional-ref.md

Ref ternary is an LValue and as such it can be passed/assigned/returned by reference;
...
Ref ternary can be used in a regular (not ref) context as well. Although it would not be common since you could as well just use a regular ternary.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@qrli
Comment options

@En3Tho
Comment options

@qrli
Comment options

Comment options

You must be logged in to vote
3 replies
@qrli
Comment options

@qrli
Comment options

@333fred
Comment options

Comment options

You must be logged in to vote
4 replies
@qrli
Comment options

@qrli
Comment options

@tfenise
Comment options

@qrli
Comment options

Answer selected by qrli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants