Hello friends, I am looking for a way to format a generic list<string>,
List<string> list1 = new List<string>();
 
I was trying with the following code
 
string allProductId = string.Join(",", list);
but I can get a format like
'option1','option2','option3'
for later use in a query Where In
 
my result, 
 
option1,option2,option3
 
but I need the string with single quotes.