This question doesn't explain exactly what the differences between theses two are, can somebody explain that more?
I've always known of using a @
sign before a string when using slashes in the string to avoid interruption like:
Console.WritLine(@"string /");
Lately I've seen some people writing with $
like:
Console.WritLine($"string /");
I've tried to see if that works, but it doesn't even work for me it gives me a runtime error.
Does anybody know if that is even a syntax in C#?