using System.Collections.Generic; namespace HeuristicLab.Analysis.FitnessLandscape { public static class ListExtensions { public static void DuplicateLast(this IList l) { l.Add(l[l.Count-1]); } public static T Last(this IList l) { return l[l.Count - 1]; } } }