I found a below code for string value Concatenation in C# , can some one say why $ is used and explain in detail?
string url = $"{baseUrl}{path}";
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted May 6, 2016, 4:33 PM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 6, 2016, 10:19 PM EDT
Ipsita Sethi114 reputationPosted May 7, 2016, 2:50 AM EDT