I have following code:
IEnumerable<token> token;
token = abc.GetToken(bcd); // this gets a list of guid tokens.
I need to get all tokens from this converted into a comma seperated list. Like
guid1, guid2, guid2… Is there a single line code to do this? Or i will have to iterate through IEnumerable list and add it as a string?
Perhaps?
Assuming that your class
tokenhas overriddenToStringaccordingly.