1
0
oop-1-labs/Lab5/Lab5.Sport/Program.cs

24 lines
620 B
C#

using System;
using System.Collections.Generic;
namespace Lab5.Sport
{
class Program
{
static void Main(string[] args)
{
List<Team> teams = InOut.ReadTeams("Teams.csv", "Players.csv");
TeamsRegister register = new TeamsRegister(teams);
/* Console.WriteLine("Number of teams: {0}\n", register.Count()); */
string targetCity = "Kaunas";
List<Player> foundPlayers = register
.FilterByCity(targetCity)
.FindPlayerActiveAndWithHighPoints();
InOut.PrintPlayers(foundPlayers);
}
}
}