public static IEnumerable <MatchResult <TY> > GetMatchResults <TX, TY>(this IEnumerable <Matchable <TY> > matches,
                                                                        Matchable <TX> original, IMetricGenerator metricGenerator)
 {
     foreach (var match in matches)
     {
         yield return(new MatchResult <TY>(match, original, metricGenerator));
     }
 }
Example #2
0
 public MatchResult(Matchable <T> match)
 {
     Match  = match;
     Metric = 0;
 }
Example #3
0
 public MatchResult(Matchable <T> match, IMatchable original, IMetricGenerator metricGenerator)
 {
     Match  = match;
     Metric = metricGenerator.GenerateMetric(match, original);
 }