using CoreLibrary.Persistance; using CoreLibrary.Joueurs; using System.Collections.Generic; using CoreLibrary; using CoreLibrary.Regles; using CoreLibrary.Core; PersistanceJSON p = new(); List mesJoueurs = new List([ new Joueur("Céleste"), new Joueur("Pauline") ]); p.Enregistrer(mesJoueurs.ToArray()); IEnumerable element = p.Charger(); foreach (Joueur joueur in element) { Console.WriteLine(joueur.Nom); } Partie partie1 = new Partie(null, null); Partie partie2 = new Partie(null, null); List parties = new List { partie1, partie2 }; p.Enregistrer(parties.ToArray());