// This code added to correctly implement the disposable pattern. public void MatchRow(TypelessDataRow dataRow) { if (dataRow is null) { throw new ArgumentNullException(nameof(dataRow)); } if (Header == -1) { MatchingRows.Add(dataRow); return; } MatchResult pool = dataRow.MatchesOutput ? MatchResult.Both : MatchResult.Route; MatchingRows.Add(dataRow); this[MatchResult.None]--; this[pool]++; }
public Evaluation(TypelessDataRow dataRow, AnalysisResults BuilderResults) { this.AnalysisResults = BuilderResults; this.Scores = new ConcurrentDictionary <long, AnalysisScore>(); this.DataRow = dataRow; }