Read the player details from the user and assign it to the Player class object. Add the object to a list of type Player and write a linq query to retrieve the player names from the list. Use basic select query in LINQ.
Player[] p=new Player[100];
for(i=0;i<;i++) {
p[i]=new Player();
p[i].PlayerName=Console.ReadLine();
}
Console.WriteLine("Player list:");
var pl=from t in p select t;
// While printing I am getting System.Linq.Enumerable+c__Iterator10`2[Player,Player]
Console.WriteLine(pl);