matchcollection join all values into one code example
Example 1: matchcollection join all values into one
string newflatChain = string.Join(";", from Match match in matchCollection select match.Value);
Example 2: matchcollection join all values into one
var toarray = from Match match in matchCollection select match.Value;
string newflatChain = string.Join(";", toarray);
Example 3: matchcollection join all values into one
var flatchain = string.Join(";", matchCollection.Cast<Match>().Select(m => m.Value));