using System; using System.Collections.Generic; namespace DMX2 { public class SequenceurMaitre { public class Ligne { public Ligne(){} string nom; int duree = -1; Dictionary data = new Dictionary(); public string Nom { get { return nom; } set { nom = value; } } public int Duree { get { return duree; } set { duree = value; } } public string this [Sequenceur index] { get { string value; if(!data.TryGetValue(index, out value)) return string.Empty; return value; } set { data[index] = value; } } } List lignes = new List(); public List Lignes { get { return lignes; } } public SequenceurMaitre () { lignes.Add(new Ligne()); } } }