public static void GenericCountMethodDoubles() { var listOfDoubles = new List <Box <double> >(); int n = int.Parse(Console.ReadLine()); while (n > 0) { listOfDoubles.Add(new Box <double>(double.Parse(Console.ReadLine()))); n--; } var comparison = new Box <double>(double.Parse(Console.ReadLine())); Console.WriteLine(SolutionManager.CountGreaterThanComparisonValue(listOfDoubles, comparison)); }
public static void GenericCountMethodStrings() { var numberOfElements = int.Parse(Console.ReadLine()); var listOfElements = new List <Box <string> >(); while (numberOfElements > 0) { listOfElements.Add(new Box <string>(Console.ReadLine())); numberOfElements--; } var comparison = new Box <string>(Console.ReadLine()); Console.WriteLine(SolutionManager.CountGreaterThanComparisonValue(listOfElements, comparison)); }