Following interpolated string formation works well:
string BG="7263-2323";
string PG="2983-2323";
string interpolatedString = $"{BG};{PG}";
Console.WriteLine(interpolatedString);
Result in variable interpolatedString:
7263-2323;2983-2323
But, the problem is that I store interpolatedString in database, then it does not display values for BG and PG... Instead it displays string as it is:
$\"{BG};{PG}\"
How can I solve this issue? Any idea?
BGand thePGvalues.