I have the following code:
MatchCollection matches = myRegEx.Matches(content); bool result = (from Match m in matches where m.Groups["nam
EDIT:
public static IEnumerable AsEnumerable(this IEnumerable enumerable) { foreach(object item in enumerable) yield return (T)item; }
Then you should be able to call this extension method to turn it into an IEnumerable:
matches.AsEnumerable().Any(x => x.Groups["name"].Value.Length > 128);