Load data using class?Solved

Hi. I'm having trouble loading my data.

	private class StoredData
	{
		public int NombreJoueurs;
		public List<pList> Joueurs;			
		public class pList
		{								
			public string Equipe;				
		}
	}
	private StoredData storedData;
	void LoadData()
	{
		storedData = Interface.Oxide.DataFileSystem.ReadObject<StoredData>("cEvent");
 	}

 	private void Loaded()
 	{
 	 	LoadData();			
 	}

If I do this, I don't have to worry about it, it's worth 50

Console.WriteLine(storedData.NombreJoueurs);

But if I do this, I get no feedback from the foreach or out of the loop I get this error message

       storedData.Joueurs = new List<StoredData.pList>();			
 	 	
       foreach (var j in storedData.Joueurs) 
       { 
              Console.WriteLine(j.Equipe);
       }	
Type `System.Collections.Generic.List<Oxide.Plugins.cEvent.StoredData.pList>' does not contain a definition for `Equipe' and no extension method `Equipe' of type `System.Collections.Generic.List<Oxide.Plugins.cEvent.StoredData.pList>' could be found.

My data

{
      "76561198969362505": {
            "Equipe": "A"
      },
      "76561198454481509": {
            "Equipe": "b"
      },
      "NombreJoueurs": 50,
}

Thank you

Anyone ?
Locked automatically