I have a JArray like this:
jaFruits = ["Apple","Pineapple","Banana","Orange"];
How to convert it into a string like below?
string strFruits -> "’Apple’, ‘Pineapple’, ‘Banana’, ‘Orange’";
any help is appreciated.
thank you so much in advance.
Regards
Don
>Solution :
I’d do something along these lines:
string strFruits = String.Join(", ",jaFruits.Select(m=>$"'{m}'"));