foreach (var error in errorData)
{
var errregex = new Regex(error.Regex);
var errmatch = errregex.Match(wholeLog);
if (errmatch.Success)
{
for (var i = 0; i <= 10; i++)
{
error.Solution = error.Solution.Replace("{" + i + "}", errmatch.Groups[i].Value);
}
if (log.Errors.All(x => x.ID != error.ID)) log.Errors.Add(error);
}
}
foreach (var error in errorData)
{
var errregex = new Regex(error.Regex);
var errmatch = errregex.Match(wholeLog);
if (errmatch.Success)
{
for (var i = 0; i <= 10; i++)
{
error.Solution = error.Solution.Replace("{" + i + "}", errmatch.Groups[i].Value);
}
if (log.Errors.All(x => x.ID != error.ID)) log.Errors.Add(error);
}
}