I like simple solutions, thanks vcsjones for answering this:
Perhaps this:
var str = String.Join(", ", SupportedNotificationMethods.Select(s => s.ToString()));
You can read more about the
String.Join
method at MSDN. Older versions ofString.Join
don’t have an overload that takes anIEnumerable
. In that case just callToArray()
after select.
–jeroen