I had an issue on using string interpolation in string.join
string type1 = "a,b,c";
string[] type2 = new string[3] { "a", "b", "c" };
how to write the string.Join query, below code is just my attempt, but the result is not as expected.
string result = string.Join(",", $"'{type1}'");
In both cases, the output should be 'a','b','c'
how to use string.Join() with string interpolation for an array of strings
var bob = string.Join(",", type2.Select(z => $"'{z}'"));dotnetfiddle.net/wKYbz8