I have a list of phrases: List<Phrase>
where the Phrase object has a property of PhraseId
. What I need to do is to get a string that consists of every Id enclosed in single quotes followed by a "," except for the last PhraseId?
In other words I would like to get a string looking something like this:
'id1','id2','id3'
I've seen the LINQ Select command but I think this just gives me another List.
Can anyone suggest how I can do this?