Skip to content

Custom InterpolatedStringHandler with string.Concat like overloads #8306

Answered by 333fred
ladeak asked this question in Q&A
Discussion options

You must be logged in to vote

No, OverloadResolutionPriority wouldn't help with something like this. Using an interpolated string as a string is a special case, and handled specially by the compiler because it can guarantee observed semantics.

Replies: 1 comment 4 replies

Comment options

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

@stephentoub
Comment options

@333fred
Comment options

Answer selected by ladeak
@ladeak
Comment options

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