상속: IComparer
예제 #1
0
 public Calc BestExitPupil()
 {
     return(new Calc()
            .Do(b => Calcs.ForEach(c => (CalcComparer.Compare(b, c) > 0)
                                   .Then(() => b.SetPropertiesFrom(c))))
            .If(b => b.LogContrastDiff > 0));
 }
예제 #2
0
 public ExitPupilSequence(CalcComparer calcComparer)
 {
     CalcComparer = calcComparer;
     _exitPupils.ForEach(_ => Calcs.Add(new Calc()));
     Mapper.CreateMap <ExitPupilSequence, Calc>();
 }