public CompositeComparisons Clone() { var clone = new CompositeComparisons(); clone.Comparisons = new Dictionary <string, Time>(Comparisons); return(clone); }
static StandardComparisonGeneratorsFactory() { CompositeComparisons.AddShortComparisonName(BestSegmentsComparisonGenerator.ComparisonName, BestSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(Run.Run.PersonalBestComparisonName, "PB"); CompositeComparisons.AddShortComparisonName(AverageSegmentsComparisonGenerator.ComparisonName, AverageSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(WorstSegmentsComparisonGenerator.ComparisonName, WorstSegmentsComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(PercentileComparisonGenerator.ComparisonName, PercentileComparisonGenerator.ShortComparisonName); CompositeComparisons.AddShortComparisonName(LatestRunComparisonGenerator.ComparisonName, LatestRunComparisonGenerator.ShortComparisonName); }