I have the following code:
MatchCollection matches = myRegEx.Matches(content); bool result = (from Match m in matches where m.Groups["nam
Try this:
var matches = myRegEx.Matches(content).Cast();
For reference, please see Enumerable.Cast:
Converts the elements of an IEnumerable to the specified type.
IEnumerable
Basically it's one way of turning an IEnumerable into an IEnumerable.