internal void Demo50()
        {
            //utilisation d'une structure
            Formation f_csharp = new Formation(5);
            Formation f_aspnet = f_csharp;

            f_aspnet.Duree = 10;
            Console.WriteLine("La durée de f_csharp est {0} et de f_aspnet {1}", f_csharp.Duree, f_aspnet.Duree);
        }
        internal void Demo52()
        {
            Formation f1 = new Formation();
            Formation f2 = new Formation();
            Formation f3 = new Formation();

            f1.Titre = "Csharp";
            f2.Titre = "Asp";
            f3.Titre = "Agile";
            //initialisation d'une liste
            List <Formation> formations = new List <Formation>()
            {
                f1, f2
            };

            formations.Add(f3);

            foreach (Formation f in formations)
            {
                Console.WriteLine(f.Titre);
            }
        }
        internal void Demo53()
        {
            Formation f1 = new Formation();
            Formation f2 = new Formation();
            Formation f3 = new Formation();

            f1.Titre = "Csharp";
            f2.Titre = "Asp";
            f3.Titre = "Agile";
            //création d'un dictionnaire
            Dictionary <string, Formation> dicFormations = new Dictionary <string, Formation>();

            dicFormations.Add("M20483", f1);
            dicFormations.Add("M20486", f2);
            dicFormations.Add("GKAG03", f3);

            //foreach (var item in dicFormations)
            //{
            //    Console.WriteLine(item.Key + "....." + item.Value.Titre);
            //}
            //Console.WriteLine(dicFormations["M20483"].Titre);

            //Requêtes linq sur dictionary
            //var resultat = from f in dicFormations
            //               where f.Key.Substring(0, 1) == "M"
            //               select new { f.Value };

            var resultat = dicFormations
                           .Where(f => f.Key.Substring(0, 1) == "M")//ceci est une expression lambda
                           .Select(s => new { s.Value });

            foreach (var item in resultat)
            {
                Console.WriteLine(item.Value.Titre);
            }
        }
        internal void Demo51()
        {
            Formation f_csharp = new Formation();

            f_csharp.Cout = -20;
        }