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));
     }
 }
Exemplo n.º 2
0
 public MatchResult(Matchable <T> match)
 {
     Match  = match;
     Metric = 0;
 }
Exemplo n.º 3
0
 public MatchResult(Matchable <T> match, IMatchable original, IMetricGenerator metricGenerator)
 {
     Match  = match;
     Metric = metricGenerator.GenerateMetric(match, original);
 }