Using LINQ extension method syntax on a MatchCollection

using System.Linq;

matches.Cast<Match>().Any(x => x.Groups["name"].Value.Length > 128)

You just need to convert it from an IEnumerable to an IEnumerable<Match> (IEnumerable<T>) to get access to the LINQ extension provided on IEnumerable<T>.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)