All these string prefixes are legal to use in C#:
"text"
@"text"
$"text"
$@"text"
Why isn't this?
@$"text"
One would have thought that the order of these operators doesn't matter, because they have no other meaning in C# but to prefix strings. I cannot think of a situation when this inverted double prefix would not compile. Is the order enforced only for aesthetic purposes?
$@""
means interpolate in a verbatim string, that makes sense. But what would you have@$""
do? Take the string verbatim after interpolation ? – Windowlight